summaryrefslogtreecommitdiffstats
path: root/tools/android.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/android.py')
-rw-r--r--tools/android.py6
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