Switch from cmake to ndk-build

We switch from cmake to ndk-build to make it easier for builders
in not requiring an additional tool installed. The JNI build is
so simple so we don't really need much of a build tool anyway.
This commit is contained in:
Fredrik Fornwall
2016-09-24 20:22:10 +02:00
parent 8314a2756c
commit 3480bf7346
3 changed files with 13 additions and 7 deletions

View File

@@ -16,6 +16,12 @@ android {
versionCode 42
versionName "0.42"
externalNativeBuild {
ndkBuild {
cFlags "-std=c11 -Wall -Wextra -Werror -Os -fno-stack-protector -Wl,--gc-sections"
}
}
ndk {
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
@@ -30,8 +36,8 @@ android {
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
ndkBuild {
path "src/main/jni/Android.mk"
}
}
}