ninja cc tools/n64crc

This commit is contained in:
Alex Bates 2021-01-15 11:36:53 +00:00
parent 61f49e23af
commit 2275b4d3ec
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -34,4 +34,5 @@ build.ninja
/sprite/SpriteTable.xml /sprite/SpriteTable.xml
/mod.cfg /mod.cfg
tools/Yay0compress /tools/Yay0compress
/tools/n64crc

View File

@ -284,7 +284,7 @@ async def main():
n.comment("target") n.comment("target")
n.build("$builddir/$target.ld", "cpp", "$target.ld") n.build("$builddir/$target.ld", "cpp", "$target.ld")
n.build("$builddir/$target.elf", "link", "$builddir/$target.ld", implicit=[obj(o) for o in objects], implicit_outputs="$builddir/$target.map") n.build("$builddir/$target.elf", "link", "$builddir/$target.ld", implicit=[obj(o) for o in objects], implicit_outputs="$builddir/$target.map")
n.build("$target.z64", "rom", "$builddir/$target.elf") n.build("$target.z64", "rom", "$builddir/$target.elf", implicit="tools/n64crc")
n.build("compare", "sha1sum", "checksum.sha1", implicit="$target.z64") n.build("compare", "sha1sum", "checksum.sha1", implicit="$target.z64")
n.newline() n.newline()
@ -426,7 +426,9 @@ async def main():
print("") print("")
n.newline() n.newline()
# c tools that need to be compiled
n.build("tools/Yay0compress", "cc_modern_exe", "tools/Yay0compress.c") n.build("tools/Yay0compress", "cc_modern_exe", "tools/Yay0compress.c")
n.build("tools/n64crc", "cc_modern_exe", "tools/n64crc.c")
n.newline() n.newline()
print("") print("")

Binary file not shown.