added verification of submodules for android

the current steps for android build didn't have new notion of needing to clone the submodules
This commit is contained in:
sjfricke 2017-08-20 20:03:46 -07:00
parent 2020c9548f
commit ae4970a8d8
2 changed files with 10 additions and 0 deletions

View file

@ -71,6 +71,12 @@ for arg in sys.argv[1:]:
BUILD_ARGS = "APP_CFLAGS=-D_VALIDATION"
break
# Verify submodules are loaded in external folder
if not os.listdir("../external/glm/") or not os.listdir("../external/gli/"):
print("External submodules not loaded. Clone them using:")
print("\tgit submodule init\n\tgit submodule update")
sys.exit(-1)
# Build
os.chdir(PROJECT_FOLDER)