mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Apply fixes from Hypnos
This commit is contained in:
parent
d4fed43dfc
commit
5895933fb5
@ -96,9 +96,9 @@ def usage(problem):
|
|||||||
|
|
||||||
def parseopts(args):
|
def parseopts(args):
|
||||||
global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR
|
global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR
|
||||||
global VERSION,COMPRESSOR,THREADCOUNT
|
global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET
|
||||||
longopts = [
|
longopts = [
|
||||||
"help","distributor=","verbose","runtime","osxtarget",
|
"help","distributor=","verbose","runtime","osxtarget=",
|
||||||
"optimize=","everything","nothing","installer","rtdist",
|
"optimize=","everything","nothing","installer","rtdist",
|
||||||
"version=","lzma","no-python","threads=","outputdir="]
|
"version=","lzma","no-python","threads=","outputdir="]
|
||||||
anything = 0
|
anything = 0
|
||||||
@ -141,8 +141,8 @@ def parseopts(args):
|
|||||||
usage("Options --runtime and --rtdist cannot be specified at the same time!")
|
usage("Options --runtime and --rtdist cannot be specified at the same time!")
|
||||||
if (optimize=="" and (RTDIST or RUNTIME)): optimize = "4"
|
if (optimize=="" and (RTDIST or RUNTIME)): optimize = "4"
|
||||||
elif (optimize==""): optimize = "3"
|
elif (optimize==""): optimize = "3"
|
||||||
if (osxtarget != None):
|
if (OSXTARGET != None):
|
||||||
if (len(osxtarget) != 4 or not OSXTARGET.startswith("10.")):
|
if (len(OSXTARGET) != 4 or not OSXTARGET.startswith("10.")):
|
||||||
usage("Invalid setting for OSXTARGET")
|
usage("Invalid setting for OSXTARGET")
|
||||||
try:
|
try:
|
||||||
OSXTARGET = "10.%d" % int(OSXTARGET[-1])
|
OSXTARGET = "10.%d" % int(OSXTARGET[-1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user