summaryrefslogtreecommitdiff
path: root/android/build.py
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-17 18:27:06 +0200
committerMax Kellermann <max@musicpd.org>2018-08-17 19:01:37 +0200
commit36edb4886c371b90bdc27eed305f112196dfb765 (patch)
tree2781db9d4706781b9dd3bd7008a50ea94c6d17a9 /android/build.py
parent76290f786d517f65b4b6b735dc120daa959b1fd5 (diff)
android/build.py: add variable "android_api_level"
Diffstat (limited to 'android/build.py')
-rwxr-xr-xandroid/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/android/build.py b/android/build.py
index 4c26f9c4c..33f08151e 100755
--- a/android/build.py
+++ b/android/build.py
@@ -65,7 +65,8 @@ class AndroidNdkToolchain:
self.build_path = build_path
ndk_arch = abi_info['ndk_arch']
- ndk_platform = 'android-14'
+ android_api_level = '14'
+ ndk_platform = 'android-' + android_api_level
# select the NDK compiler
gcc_version = '4.9'
@@ -106,7 +107,7 @@ class AndroidNdkToolchain:
self.cppflags = '--sysroot=' + sysroot + \
' -isystem ' + os.path.join(install_prefix, 'include') + \
' -isystem ' + os.path.join(sysroot, 'usr', 'include', arch) + \
- ' -D__ANDROID_API__=14'
+ ' -D__ANDROID_API__=' + android_api_level
self.ldflags = '--sysroot=' + sysroot + \
' -L' + os.path.join(install_prefix, 'lib') + \
' -L' + os.path.join(target_root, 'usr', 'lib') + \