1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-10 19:20:13 +00:00

Remove touchasset.py to improve build performance (#611)

This commit is contained in:
Roman971 2021-01-08 23:42:05 +01:00 committed by GitHub
parent 3cef03f5ff
commit 5c6335f9fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 24 deletions

View file

@ -244,41 +244,31 @@ assets/%.c: assets/%.xml
$(CC) -c $(CFLAGS) $(MIPS_VERSION) $(OPTFLAGS) -o build/$(@:.c=.o) $@
build/%.rgba32.inc.c: %.rgba32.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt rgba32 -i $< -o $@
build/%.rgb5a1.inc.c: %.rgb5a1.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt rgb5a1 -i $< -o $@
build/%.i4.inc.c: %.i4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt i4 -i $< -o $@
build/%.i8.inc.c: %.i8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt i8 -i $< -o $@
build/%.ia4.inc.c: %.ia4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia4 -i $< -o $@
build/%.ia8.inc.c: %.ia8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia8 -i $< -o $@
build/%.ia16.inc.c: %.ia16.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia16 -i $< -o $@
build/assets/%.ci4.inc.c: assets/%.ci4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
build/%.ci4.inc.c: %.ci4.png
$(ZAPD) btex -tt ci4 -i $< -o $@
build/%.ci8.inc.c: %.ci8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ci8 -i $< -o $@
build/assets/%.bin.inc.c: assets/%.bin
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) bblb -i $< -o $@

View file

@ -1,13 +0,0 @@
#!/usr/bin/python3
import sys
import os
from os import path
if (path.exists(sys.argv[1])):
f = open(sys.argv[1], "r")
text = f.read()
f.close()
execStr = "touch " + text
print(execStr)
os.system(execStr)