-
Notifications
You must be signed in to change notification settings - Fork 2
/
native_build.gradle
44 lines (36 loc) · 1.03 KB
/
native_build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
android {
defaultConfig {
}
flavorDimensions "build"
productFlavors {
'ndk' {
dimension "build"
externalNativeBuild {
ndkBuild {
arguments "APP_PLATFORM=android-21"
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
// android.externalNativeBuild {
// ndkBuild {
// path 'src/main/cpp/Android.mk'
// }
// }
}
'cmake' {
dimension "build"
externalNativeBuild {
cmake {
arguments "-DANDROID_APP_PLATFORM=android-21", "-DANDROID_STL=c++_static"
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
android.externalNativeBuild {
cmake {
path 'src/main/cpp/CMakeLists.txt'
version "3.22.1"
}
}
}
}
}