File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,19 @@ android {
23
23
ndk {
24
24
// Default list of ABIs available in up-to-date NDK.
25
25
abiFilters " x86" , " armeabi-v7a" , " arm64-v8a" , " x86_64"
26
+
27
+ if (System . getenv(' NDK_ROOT' ). contains(' r16b' ) ||
28
+ System . getenv(' NDK_ROOT' ). contains(' r11c' )) {
29
+ // Deprecated ABIs are added to the list when building using older NDKs only.
30
+ // Rather than an exhaustive list, we only support r11c and r16b.
31
+ abiFilters. add(" armeabi" )
32
+ abiFilters. add(" mips" )
33
+ abiFilters. add(" mips64" )
34
+ if (System . getenv(' NDK_ROOT' ). contains(' r11c' )) {
35
+ abiFilters. add(" armeabi-v7a-hard" ) // Removed after r11c.
36
+ }
37
+ }
26
38
}
27
39
}
28
40
}
29
41
30
- if (System . getenv(' NDK_ROOT' )) {
31
- if (System . getenv(' NDK_ROOT' ). contains(' r16b' ) || System . getenv(' NDK_ROOT' ). contains(' r11c' )) {
32
- // Deprecated ABIs are added to the list when building using older NDKs only.
33
- // Rather than an exhaustive list, we only support r11c and r16b.
34
- android. defaultConfig. ndk. abiFilters. add(" armeabi" )
35
- android. defaultConfig. ndk. abiFilters. add(" mips" )
36
- android. defaultConfig. ndk. abiFilters. add(" mips64" )
37
- if (System . getenv(' NDK_ROOT' ). contains(' r11c' )) {
38
- android. defaultConfig. ndk. abiFilters. add(" armeabi-v7a-hard" ) // Removed after r11c.
39
- }
40
- }
41
- }
You can’t perform that action at this time.
0 commit comments