Skip to content

Commit

Permalink
ARM64 support.
Browse files Browse the repository at this point in the history
I haven't run any unit tests or anything, but the created artifact works with our apps.
  • Loading branch information
superjohan committed Jan 22, 2018
1 parent d70acda commit 7f1c832
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions build_system/build_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
"node_enabled": True,
},
},
{
"name": "android-arm64 @ Docker",
"params": {
"target": c.target_android,
"arch": c.arch_arm64,
"docker": True,
"node_enabled": True,
},
},
# ALPINE LINUX builds
{
"name": "alpine-linux-x64 @ Docker",
Expand Down
1 change: 1 addition & 0 deletions build_system/build_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@
c.arch_x86,
c.arch_x64,
c.arch_arm,
c.arch_arm64
]
5 changes: 3 additions & 2 deletions build_system/config_android.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import build_utils as b
import cmake_utils as cmu

android_config = PlatformConfig(c.target_android, [c.arch_x86, c.arch_arm])
android_config = PlatformConfig(c.target_android, [c.arch_x86, c.arch_arm, c.arch_arm64])

android_config.set_cross_configs({
"docker": DockerBuildStep(
Expand All @@ -21,7 +21,8 @@

android_config.set_file_abis({
c.arch_arm: "armeabi-v7a",
c.arch_x86: "x86"
c.arch_x86: "x86",
c.arch_arm64: "arm64-v8a"
})

#-----------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions build_system/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
arch_x86 = 'x86'
arch_x64 = 'x64'
arch_arm = 'arm'
arch_arm64 = 'arm64'

# atomic build-steps
build_node_js = 'nodejs'
Expand Down
2 changes: 1 addition & 1 deletion jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
APP_ABI := armeabi-v7a x86
APP_ABI := armeabi-v7a x86 arm64-v8a
APP_PLATFORM := android-15
APP_STL=gnustl_static

0 comments on commit 7f1c832

Please sign in to comment.