add clean option to ninja

This commit is contained in:
shibbo 2024-07-23 10:14:39 -04:00
parent 31eefc4f8b
commit e21ac1ea8d

View File

@ -9,11 +9,15 @@ import shutil
from ninja_syntax import Writer
nonmatching_str = ""
clean = False
if "-non-matching" in sys.argv:
nonmatching_str = "-DNON_MATCHING"
print("Non-functions matches will be compiled")
if "-clean" in sys.argv:
subprocess.call("ninja -t clean", shell=True)
INCLUDE_DIRS = ["include", "lib\\ActionLibrary\\include", "lib\\agl\\include", "lib\\eui\\incldue", "lib\\nn\\include", "lib\\sead\\include", "compiler\\nx\\aarch64\\include", "compiler\\nx\\aarch64\\include\\c++" ]
LIBRARIES = [ "Game", "ActionLibrary", "agl", "eui", "nn", "sead"]