Use the new cmake support to build JNI code

This commit is contained in:
Fredrik Fornwall
2016-09-21 22:30:20 +02:00
parent 26dcd5af88
commit d658e16801
4 changed files with 13 additions and 5 deletions

View File

@@ -17,9 +17,7 @@ android {
versionName "0.42"
ndk {
moduleName "libtermux"
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
cFlags "-std=c11 -Wall -Wextra -Os -fno-stack-protector -nostdlib -Wl,--gc-sections"
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
}
@@ -30,6 +28,12 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
}
dependencies {