2021-07-27 10:11:46 +00:00
|
|
|
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 {
|
2022-09-26 03:23:14 +00:00
|
|
|
version "3.22.1"
|
2021-07-27 10:11:46 +00:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
}
|
|
|
|
|