Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Comminos <andrew@comminos.com>2016-02-22 12:56:51 +0300
committerAndrew Comminos <andrew@comminos.com>2016-02-22 12:56:51 +0300
commitcadb742ffaad9e0e6ed71227c1ec25666b084bc9 (patch)
tree3f4d8993a072f7b35e4afab69ac9a85679ffb191 /build.gradle
parenta1bbf51f867c2ac96d542d20433ccadb411a2733 (diff)
Add task to automatically build NDK libraries.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 5271f85..449c2b2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -61,4 +61,13 @@ android {
// cFlags "-I\$(LOCAL_PATH)/speex/include/ -I\$(LOCAL_PATH)/celt-0.11.0-src/include/ -I\$(LOCAL_PATH)/celt-0.7.0-src/include/ -I\$(LOCAL_PATH)/opus/include -D__EMX__ -DUSE_KISS_FFT -DFIXED_POINT -DEXPORT='' -DHAVE_CONFIG_H -fvisibility=hidden -DOPUS_BUILD -DVAR_ARRAYS -Wno-traditional -DFIXED_POINT"
// }
}
+
+ // Trigger NDK build on java compilation task.
+ task ndkBuild(type: Exec) {
+ commandLine 'ndk-build', '-C', file('src/main/jni/').absolutePath
+ }
+
+ tasks.withType(JavaCompile) {
+ compileTask -> compileTask.dependsOn ndkBuild
+ }
} \ No newline at end of file