mirror of
https://github.com/SMGCommunity/Petari.git
synced 2024-11-23 21:49:45 +00:00
change build_all to allow to archive and link a single lib and make it create a DOL
This commit is contained in:
parent
4494eaac86
commit
3c18a32a81
16
build_all.py
16
build_all.py
@ -1,9 +1,17 @@
|
||||
import subprocess
|
||||
import subprocess, sys
|
||||
|
||||
libs = [ "JSystem", "MetroTRK", "MSL_C", "nw4r", "Runtime", "RVL_SDK", "RVLFaceLib" ]
|
||||
|
||||
for lib in libs:
|
||||
print(f"libs/{lib}")
|
||||
subprocess.call("python build.py -archive", cwd=f"libs/{lib}")
|
||||
if len(sys.argv) >= 2:
|
||||
lib_name = sys.argv[1]
|
||||
|
||||
if lib_name not in libs:
|
||||
print("Error: library not found")
|
||||
sys.exit(1)
|
||||
else:
|
||||
subprocess.call("python build.py -archive", cwd=f"libs/{lib_name}")
|
||||
else:
|
||||
for lib in libs:
|
||||
subprocess.call("python build.py -archive", cwd=f"libs/{lib}")
|
||||
|
||||
subprocess.call("python build.py -link")
|
Loading…
Reference in New Issue
Block a user