Re-add NDK r12b, now fixed.

This commit is contained in:
Daniel Martí 2016-08-02 11:09:32 +02:00
parent bf153ec247
commit 059d216aff
9 changed files with 18 additions and 8 deletions

View file

@ -460,7 +460,7 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
ndk_path = build.ndk_path()
if build.ndk or (build.buildjni and build.buildjni != ['no']):
if not ndk_path:
logging.critical("Android NDK version '%s' could not be found!" % build.ndk or 'r10e')
logging.critical("Android NDK version '%s' could not be found!" % build.ndk or 'r12b')
logging.critical("Configured versions:")
for k, v in config['ndk_paths'].items():
if k.endswith("_orig"):

View file

@ -56,7 +56,8 @@ default_config = {
'sdk_path': "$ANDROID_HOME",
'ndk_paths': {
'r9b': None,
'r10e': "$ANDROID_NDK",
'r10e': None,
'r12b': "$ANDROID_NDK",
},
'build_tools': "24.0.0",
'force_build_tools': False,

View file

@ -235,7 +235,7 @@ def main():
logging.info(' Android SDK:\t\t\t' + config['sdk_path'])
if aapt:
logging.info(' Android SDK Build Tools:\t' + os.path.dirname(aapt))
logging.info(' Android NDK r10e (optional):\t$ANDROID_NDK')
logging.info(' Android NDK r12b (optional):\t$ANDROID_NDK')
logging.info(' Keystore for signing key:\t' + keystore)
if repo_keyalias is not None:
logging.info(' Alias for key in store:\t' + repo_keyalias)

View file

@ -348,7 +348,7 @@ class Build():
def ndk_path(self):
version = self.ndk
if not version:
version = 'r10e' # falls back to latest
version = 'r12b' # falls back to latest
paths = fdroidserver.common.config['ndk_paths']
if version not in paths:
return ''