mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
build: error properly if an invalid ndk is used
Currently, if buildjni is not used but ndk is set to an invalid value, the build would start but $ANDROID_NDK would be empty. This is happening in VLC, which results in very confusing errors. If a build uses a ndk= value that is not set up, such as r11/r12 which we do not have yet, it should error with "NDK version could not be found". It does with this change.
This commit is contained in:
parent
0f708f367c
commit
a0e4245443
1 changed files with 1 additions and 1 deletions
|
|
@ -458,7 +458,7 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
|
|||
"""Do a build locally."""
|
||||
|
||||
ndk_path = build.ndk_path()
|
||||
if build.buildjni and build.buildjni != ['no']:
|
||||
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("Configured versions:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue