-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (36 loc) · 1009 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDir 'src'
res.srcDir 'res'
assets.srcDir 'assets'
resources.srcDir 'src'
aidl.srcDir ' src'
// add compiled libs to apk!
jniLibs.srcDir 'libs'
}
}
// the defines how to trigger ndk-build to create droidcon-native.so
task ndkBuild(type: Exec) {
if (System.properties['os.name'].toLowerCase().contains('windows')) {
commandLine 'ndk-build.cmd'
} else {
commandLine 'ndk-build'
}
}
tasks.withType(Compile) {
compileTask -> compileTask.dependsOn ndkBuild
}
}