mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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",
|
"optimize=","everything","nothing","installer","rtdist","nocolor",
|
||||||
"version=","lzma","no-python","threads=","outputdir=","override=",
|
"version=","lzma","no-python","threads=","outputdir=","override=",
|
||||||
"static","host=","debversion=","rpmrelease=","p3dsuffix=",
|
"static","host=","debversion=","rpmrelease=","p3dsuffix=",
|
||||||
"directx-sdk=", "platform-sdk=", "use-icl",
|
"directx-sdk=", "platform-sdk=", "use-icl", "clean",
|
||||||
"universal", "target=", "arch=", "git-commit="]
|
"universal", "target=", "arch=", "git-commit="]
|
||||||
anything = 0
|
anything = 0
|
||||||
optimize = ""
|
optimize = ""
|
||||||
target = None
|
target = None
|
||||||
target_arch = None
|
target_arch = None
|
||||||
universal = False
|
universal = False
|
||||||
|
clean_build = False
|
||||||
for pkg in PkgListGet():
|
for pkg in PkgListGet():
|
||||||
longopts.append("use-" + pkg.lower())
|
longopts.append("use-" + pkg.lower())
|
||||||
longopts.append("no-" + 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")
|
print("No MS Platform SDK version specified. Using 'default' MS Platform SDK search")
|
||||||
STRMSPLATFORMVERSION = 'default'
|
STRMSPLATFORMVERSION = 'default'
|
||||||
elif (option=="--use-icl"): BOOUSEINTELCOMPILER = True
|
elif (option=="--use-icl"): BOOUSEINTELCOMPILER = True
|
||||||
|
elif (option=="--clean"): clean_build = True
|
||||||
else:
|
else:
|
||||||
for pkg in PkgListGet():
|
for pkg in PkgListGet():
|
||||||
if option == "--use-" + pkg.lower():
|
if option == "--use-" + pkg.lower():
|
||||||
@ -320,6 +322,10 @@ def parseopts(args):
|
|||||||
if RUNTIME or not is_win7:
|
if RUNTIME or not is_win7:
|
||||||
PkgDisable("TOUCHINPUT")
|
PkgDisable("TOUCHINPUT")
|
||||||
|
|
||||||
|
if clean_build:
|
||||||
|
print("Deleting %s" % (GetOutputDir()))
|
||||||
|
shutil.rmtree(GetOutputDir())
|
||||||
|
|
||||||
parseopts(sys.argv[1:])
|
parseopts(sys.argv[1:])
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user