Skip to content

Commit

Permalink
Add an error message if android NDK is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLinus committed Dec 29, 2023
1 parent 1c19d62 commit 70dded9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70dded9

Please sign in to comment.