diff options
-rw-r--r-- | build.gradle | 9 |
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 |