allow specifying of Android NDK API. Resolves #758
This commit is contained in:
parent
50cc61681e
commit
96bbbebf0b
2 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,9 @@ fullscreen = 0
|
||||||
# (str) Android NDK version to use
|
# (str) Android NDK version to use
|
||||||
#android.ndk = 9c
|
#android.ndk = 9c
|
||||||
|
|
||||||
|
# (int) Android NDK API to use (optional)
|
||||||
|
#android.ndk.api = 19
|
||||||
|
|
||||||
# (bool) Use --private data storage (True) or --dir public storage (False)
|
# (bool) Use --private data storage (True) or --dir public storage (False)
|
||||||
#android.private_storage = True
|
#android.private_storage = True
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ class TargetAndroidNew(TargetAndroid):
|
||||||
color = 'always' if USE_COLOR else 'never'
|
color = 'always' if USE_COLOR else 'never'
|
||||||
self.extra_p4a_args = ' --color={} --storage-dir="{}"'.format(
|
self.extra_p4a_args = ' --color={} --storage-dir="{}"'.format(
|
||||||
color, self._build_dir)
|
color, self._build_dir)
|
||||||
|
ndk_api = self.buildozer.config.getdefault('app', 'android.ndk.api', None)
|
||||||
|
if ndk_api is not None:
|
||||||
|
self.extra_p4a_args += ' --ndk-api={}'.format(ndk_api)
|
||||||
hook = self.buildozer.config.getdefault("app", "p4a.hook", None)
|
hook = self.buildozer.config.getdefault("app", "p4a.hook", None)
|
||||||
if hook is not None:
|
if hook is not None:
|
||||||
self.extra_p4a_args += ' --hook={}'.format(realpath(hook))
|
self.extra_p4a_args += ' --hook={}'.format(realpath(hook))
|
||||||
|
|
Loading…
Reference in a new issue