ninja tools/Yay0compress

This commit is contained in:
Alex Bates 2021-01-14 12:49:13 +00:00
parent b2bb62a205
commit 5ac16f969a
3 changed files with 7 additions and 12 deletions

View File

@ -128,7 +128,6 @@ clean-code:
rm -rf $(BUILD_DIR)/src
tools:
make -C tools
setup: clean-all submodules tools
@make split

View File

@ -122,6 +122,9 @@ async def main():
cpp = args.cpp or "cpp"
task_sem = asyncio.Semaphore(8)
# compile n64splat dependencies
await shell("make -C tools/n64splat")
# split assets
split.main(
"baserom.z64",
@ -297,6 +300,10 @@ async def main():
num_tasks_done = 0
await asyncio.gather(*tasks)
print("")
n.newline()
n.rule("cc_modern_exe", command="cc $in -O3 -o $out")
n.build("tools/Yay0compress", "cc_modern_exe", "tools/Yay0compress.c")
if __name__ == "__main__":
asyncio.run(main())

View File

@ -1,11 +0,0 @@
default: all
all: Yay0compress
make -C n64splat
Yay0compress:
gcc Yay0compress.c -O3 -o Yay0compress
clean:
rm -f Yay0compress
make clean -C n64splat