1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-25 09:45:02 +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) $@ $(CC) -c $(CFLAGS) $(MIPS_VERSION) $(OPTFLAGS) -o build/$(@:.c=.o) $@
build/%.rgba32.inc.c: %.rgba32.png build/%.rgba32.inc.c: %.rgba32.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt rgba32 -i $< -o $@ $(ZAPD) btex -tt rgba32 -i $< -o $@
build/%.rgb5a1.inc.c: %.rgb5a1.png build/%.rgb5a1.inc.c: %.rgb5a1.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt rgb5a1 -i $< -o $@ $(ZAPD) btex -tt rgb5a1 -i $< -o $@
build/%.i4.inc.c: %.i4.png build/%.i4.inc.c: %.i4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt i4 -i $< -o $@ $(ZAPD) btex -tt i4 -i $< -o $@
build/%.i8.inc.c: %.i8.png build/%.i8.inc.c: %.i8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt i8 -i $< -o $@ $(ZAPD) btex -tt i8 -i $< -o $@
build/%.ia4.inc.c: %.ia4.png build/%.ia4.inc.c: %.ia4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia4 -i $< -o $@ $(ZAPD) btex -tt ia4 -i $< -o $@
build/%.ia8.inc.c: %.ia8.png build/%.ia8.inc.c: %.ia8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia8 -i $< -o $@ $(ZAPD) btex -tt ia8 -i $< -o $@
build/%.ia16.inc.c: %.ia16.png build/%.ia16.inc.c: %.ia16.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ia16 -i $< -o $@ $(ZAPD) btex -tt ia16 -i $< -o $@
build/assets/%.ci4.inc.c: assets/%.ci4.png build/%.ci4.inc.c: %.ci4.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ci4 -i $< -o $@ $(ZAPD) btex -tt ci4 -i $< -o $@
build/%.ci8.inc.c: %.ci8.png build/%.ci8.inc.c: %.ci8.png
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) btex -tt ci8 -i $< -o $@ $(ZAPD) btex -tt ci8 -i $< -o $@
build/assets/%.bin.inc.c: assets/%.bin build/assets/%.bin.inc.c: assets/%.bin
python3 tools/touchasset.py $(addsuffix basefile.txt, $(dir $@))
$(ZAPD) bblb -i $< -o $@ $(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)