summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-03-04 20:32:50 +0100
committerMax Kellermann <max@musicpd.org>2018-03-04 20:32:50 +0100
commite86015a72a8225f534df8777c16748a849914522 (patch)
treea11acd28023ceece96a721ffb5f695f880d927e0
parentcf7ec2c9d369b864479c070a8b4a25779bd2694c (diff)
android/build.py: convert ndk_arch to local variable
-rwxr-xr-xandroid/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/build.py b/android/build.py
index 4c4f77ae7..516829274 100755
--- a/android/build.py
+++ b/android/build.py
@@ -44,7 +44,7 @@ class AndroidNdkToolchain:
self.src_path = src_path
self.build_path = build_path
- self.ndk_arch = 'arm'
+ ndk_arch = 'arm'
android_abi = 'armeabi-v7a'
ndk_platform = 'android-14'
@@ -53,7 +53,7 @@ class AndroidNdkToolchain:
ndk_platform_path = os.path.join(ndk_path, 'platforms', ndk_platform)
sysroot = os.path.join(ndk_path, 'sysroot')
- target_root = os.path.join(ndk_platform_path, 'arch-' + self.ndk_arch)
+ target_root = os.path.join(ndk_platform_path, 'arch-' + ndk_arch)
install_prefix = os.path.join(arch_path, 'root')
@@ -95,7 +95,7 @@ class AndroidNdkToolchain:
' ' + common_flags
self.libs = ''
- self.is_arm = self.ndk_arch == 'arm'
+ self.is_arm = ndk_arch == 'arm'
self.is_armv7 = self.is_arm and 'armv7' in self.cflags
self.is_windows = False