diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-17 17:53:46 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-17 19:20:25 +0200 |
commit | 12bc625fe1141c2d9e37b7aa0ca827bbf3804ffe (patch) | |
tree | ea0abf503f2cb6b826c702f08dbbecf5c558ff65 /android | |
parent | 6b407356b9d3564c2406c648c611f337f4d419fa (diff) |
android/build.py: add aarch64 support
Diffstat (limited to 'android')
-rwxr-xr-x | android/build.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/build.py b/android/build.py index 2b29a3fcd..caf85f06c 100755 --- a/android/build.py +++ b/android/build.py @@ -29,6 +29,15 @@ android_abis = { 'cflags': '-march=armv7-a -mfpu=vfp -mfloat-abi=softfp', }, + 'arm64-v8a': { + 'android_api_level': '21', + 'arch': 'aarch64-linux-android', + 'ndk_arch': 'arm64', + 'toolchain_arch': 'aarch64-linux-android', + 'llvm_triple': 'aarch64-none-linux-android', + 'cflags': '', + }, + 'x86': { 'arch': 'i686-linux-android', 'ndk_arch': 'x86', @@ -117,6 +126,7 @@ class AndroidNdkToolchain: self.is_arm = ndk_arch == 'arm' self.is_armv7 = self.is_arm and 'armv7' in self.cflags + self.is_aarch64 = ndk_arch == 'arm64' self.is_windows = False libcxx_path = os.path.join(ndk_path, 'sources/cxx-stl/llvm-libc++') |