summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-03-04 20:46:46 +0100
committerMax Kellermann <max@musicpd.org>2018-03-04 20:46:46 +0100
commit8266ab5588ccca25b0b8b09e970736898159e73f (patch)
treed49efaf5a409d0227fc2f2b230ec4a3c6fb912cd /android
parentea552208fcb5d59386253233955b5ae5f7989562 (diff)
android/build.py: support the x86 ABI
First commit for issue #69
Diffstat (limited to 'android')
-rwxr-xr-xandroid/build.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/android/build.py b/android/build.py
index 02b426119..19dcbaee7 100755
--- a/android/build.py
+++ b/android/build.py
@@ -24,9 +24,18 @@ android_abis = {
'armeabi-v7a': {
'arch': 'arm-linux-androideabi',
'ndk_arch': 'arm',
+ 'toolchain_arch': 'arm-linux-androideabi',
'llvm_triple': 'armv7-none-linux-androideabi',
'cflags': '-march=armv7-a -mfpu=vfp -mfloat-abi=softfp',
},
+
+ 'x86': {
+ 'arch': 'i686-linux-android',
+ 'ndk_arch': 'x86',
+ 'toolchain_arch': 'x86',
+ 'llvm_triple': 'i686-none-linux-android',
+ 'cflags': '-march=i686 -mtune=intel -mssse3 -mfpmath=sse -m32',
+ },
}
# select the NDK target
@@ -71,7 +80,7 @@ class AndroidNdkToolchain:
self.install_prefix = install_prefix
self.sysroot = sysroot
- toolchain_path = os.path.join(ndk_path, 'toolchains', arch + '-' + gcc_version, 'prebuilt', build_arch)
+ toolchain_path = os.path.join(ndk_path, 'toolchains', abi_info['toolchain_arch'] + '-' + gcc_version, 'prebuilt', build_arch)
llvm_path = os.path.join(ndk_path, 'toolchains', 'llvm', 'prebuilt', build_arch)
llvm_triple = abi_info['llvm_triple']