28 lines
648 B
Groovy
28 lines
648 B
Groovy
![]() |
apply plugin: 'com.android.library'
|
||
|
|
||
|
android {
|
||
|
compileSdkVersion rootProject.compileSdkVersion
|
||
|
buildToolsVersion rootProject.buildToolsVersion
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdkVersion rootProject.minSdkVersion
|
||
|
targetSdkVersion rootProject.targetSdkVersion
|
||
|
|
||
|
ndk {
|
||
|
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a'
|
||
|
}
|
||
|
|
||
|
externalNativeBuild {
|
||
|
cmake {
|
||
|
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
externalNativeBuild {
|
||
|
cmake {
|
||
|
path 'src/main/cpp/CMakeLists.txt'
|
||
|
}
|
||
|
}
|
||
|
}
|