diff options
author | David Snopek <dsnopek@gmail.com> | 2024-01-04 08:35:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 08:35:18 -0600 |
commit | b1769a70f08d12b4d35b9884081f04f2bc883604 (patch) | |
tree | cfcf3ba1f7c1c513881edcb42fc9f7322cdc2eaa /tools/android.py | |
parent | 3f44e9b404eeb41987bb16941b6ed5851b964307 (diff) | |
parent | 718d0baea3e310391c6feb5b61b8e2dda6a08533 (diff) | |
download | redot-cpp-b1769a70f08d12b4d35b9884081f04f2bc883604.tar.gz |
Merge pull request #1344 from ArchLinus/ndk-error
Add an error message if android NDK is not installed
Diffstat (limited to 'tools/android.py')
-rw-r--r-- | tools/android.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/android.py b/tools/android.py index bee58c4..0c25354 100644 --- a/tools/android.py +++ b/tools/android.py @@ -64,6 +64,12 @@ def generate(env): elif sys.platform == "darwin": toolchain += "darwin-x86_64" env.Append(LINKFLAGS=["-shared"]) + + if not os.path.exists(toolchain): + print("ERROR: Could not find NDK toolchain at " + toolchain + ".") + print("Make sure NDK version " + get_ndk_version() + " is installed.") + env.Exit(1) + env.PrependENVPath("PATH", toolchain + "/bin") # This does nothing half of the time, but we'll put it here anyways # Get architecture info |