mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Add --clean flag to makepanda to force a clean build
This commit is contained in:
parent
828fe2af88
commit
e0dea2b342
@ -176,13 +176,14 @@ def parseopts(args):
|
||||
"optimize=","everything","nothing","installer","rtdist","nocolor",
|
||||
"version=","lzma","no-python","threads=","outputdir=","override=",
|
||||
"static","host=","debversion=","rpmrelease=","p3dsuffix=",
|
||||
"directx-sdk=", "platform-sdk=", "use-icl",
|
||||
"directx-sdk=", "platform-sdk=", "use-icl", "clean",
|
||||
"universal", "target=", "arch=", "git-commit="]
|
||||
anything = 0
|
||||
optimize = ""
|
||||
target = None
|
||||
target_arch = None
|
||||
universal = False
|
||||
clean_build = False
|
||||
for pkg in PkgListGet():
|
||||
longopts.append("use-" + pkg.lower())
|
||||
longopts.append("no-" + pkg.lower())
|
||||
@ -233,6 +234,7 @@ def parseopts(args):
|
||||
print("No MS Platform SDK version specified. Using 'default' MS Platform SDK search")
|
||||
STRMSPLATFORMVERSION = 'default'
|
||||
elif (option=="--use-icl"): BOOUSEINTELCOMPILER = True
|
||||
elif (option=="--clean"): clean_build = True
|
||||
else:
|
||||
for pkg in PkgListGet():
|
||||
if option == "--use-" + pkg.lower():
|
||||
@ -320,6 +322,10 @@ def parseopts(args):
|
||||
if RUNTIME or not is_win7:
|
||||
PkgDisable("TOUCHINPUT")
|
||||
|
||||
if clean_build:
|
||||
print("Deleting %s" % (GetOutputDir()))
|
||||
shutil.rmtree(GetOutputDir())
|
||||
|
||||
parseopts(sys.argv[1:])
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user