64 lines
1.6 KiB
Groovy
64 lines
1.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply from: '../../../config/version.gradle'
|
|
|
|
android {
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
ndk {
|
|
debugSymbolLevel 'FULL'
|
|
}
|
|
}
|
|
debug {
|
|
minifyEnabled true
|
|
jniDebuggable true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
ndk {
|
|
debugSymbolLevel 'FULL'
|
|
}
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
version "3.10.2"
|
|
path "CMakeLists.txt"
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments "-DANDROID=1", "-DCMAKE_BUILD_TYPE=Release", "-DANDROID_ARM_NEON=TRUE", "-DANDROID_TOOLCHAIN=clang"
|
|
cppFlags "-fexceptions", "-ffast-math", "-ftree-vectorize"
|
|
cFlags "-ffast-math", "-ftree-vectorize"
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'lib/x86/libc++_shared.so'
|
|
exclude 'lib/x86_64/libc++_shared.so'
|
|
exclude 'lib/armeabi-v7a/libc++_shared.so'
|
|
exclude 'lib/arm64-v8a/libc++_shared.so'
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
}
|
|
|