Skip to content

Commit a035047

Browse files
committed
Merge branch 'feature/js-android-abi-fix' into dev
2 parents 77d64e7 + 649de71 commit a035047

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

android_build_files/android_abis.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Set the list of Android ABIs depending on whether we the NDK_ROOT environment
16-
// variable contains the text 'r16b' in it. This will generally only occur
17-
// during C++ packaging, which uses /tmp/android-ndk-r16b as the NDK directory.
18-
// When using this NDK version, add a few additional ABIs that are only
19-
// supported in r16b and earlier.
15+
// Set the list of Android ABIs depending on whether we the ANDROID_NDK_HOME
16+
// environment variable contains the text 'r16b' in it. This will generally only
17+
// occur during C++ packaging, which uses /tmp/android-ndk-r16b as the NDK
18+
// directory. When using this NDK version, add a few additional ABIs that are
19+
// only supported in r16b and earlier.
2020

2121
android {
2222
defaultConfig {
2323
ndk {
2424
// Default list of ABIs available in up-to-date NDK.
2525
abiFilters "x86", "armeabi-v7a", "arm64-v8a", "x86_64"
2626

27-
if (System.getenv('NDK_ROOT').contains('r16b') ||
28-
System.getenv('NDK_ROOT').contains('r11c')) {
27+
if (System.getenv("ANDROID_NDK_HOME").contains("r16b") ||
28+
System.getenv("ANDROID_NDK_HOME").contains("r11c")) {
2929
// Deprecated ABIs are added to the list when building using older NDKs only.
3030
// Rather than an exhaustive list, we only support r11c and r16b.
3131
abiFilters.add("armeabi")
3232
abiFilters.add("mips")
3333
abiFilters.add("mips64")
34-
if (System.getenv('NDK_ROOT').contains('r11c')) {
34+
if (System.getenv("ANDROID_NDK_HOME").contains("r11c")) {
3535
abiFilters.add("armeabi-v7a-hard") // Removed after r11c.
3636
}
3737
}

0 commit comments

Comments
 (0)