Wildcard copy for additional assets (android build script)
This commit is contained in:
parent
763e927eee
commit
83d4887b93
1 changed files with 6 additions and 3 deletions
|
|
@ -65,7 +65,6 @@ VALIDATION = False
|
||||||
BUILD_ARGS = ""
|
BUILD_ARGS = ""
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
print(arg)
|
|
||||||
if arg == "-validation":
|
if arg == "-validation":
|
||||||
VALIDATION = True
|
VALIDATION = True
|
||||||
# Use a define to force validation in code
|
# Use a define to force validation in code
|
||||||
|
|
@ -105,8 +104,12 @@ if subprocess.call("ndk-build %s" %BUILD_ARGS, shell=True) == 0:
|
||||||
for filename in ASSETS_TEXTURES:
|
for filename in ASSETS_TEXTURES:
|
||||||
shutil.copy("../../data/textures/%s" % filename, "./assets/textures")
|
shutil.copy("../../data/textures/%s" % filename, "./assets/textures")
|
||||||
for filename in ADDITIONAL_FILES:
|
for filename in ADDITIONAL_FILES:
|
||||||
print("%s" % filename)
|
if "*.*" in filename:
|
||||||
shutil.copy("../../data/%s" % filename, "./assets/%s" % filename)
|
for fname in glob.glob("../../data/%s" % filename):
|
||||||
|
locfname = fname.replace("../../data/", "")
|
||||||
|
shutil.copy(fname, "./assets/%s" % locfname)
|
||||||
|
else:
|
||||||
|
shutil.copy("../../data/%s" % filename, "./assets/%s" % filename)
|
||||||
|
|
||||||
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue