mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Properer fix
This commit is contained in:
parent
8d91eff110
commit
b6d88741c3
@ -174,7 +174,6 @@ 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 (DEBVERSION is None): DEBVERSION = VERSION
|
|
||||||
if (OSXTARGET != None and OSXTARGET.strip() == ""):
|
if (OSXTARGET != None and OSXTARGET.strip() == ""):
|
||||||
OSXTARGET = None
|
OSXTARGET = None
|
||||||
elif (OSXTARGET != None):
|
elif (OSXTARGET != None):
|
||||||
@ -218,16 +217,19 @@ if (sys.platform == "darwin" and OSXTARGET != None):
|
|||||||
##
|
##
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
if (VERSION == None):
|
if (VERSION is None):
|
||||||
if (RUNTIME):
|
if (RUNTIME):
|
||||||
VERSION = ParsePluginVersion("dtool/PandaVersion.pp")
|
VERSION = ParsePluginVersion("dtool/PandaVersion.pp")
|
||||||
COREAPI_VERSION = VERSION + "." + ParseCoreapiVersion("dtool/PandaVersion.pp")
|
COREAPI_VERSION = VERSION + "." + ParseCoreapiVersion("dtool/PandaVersion.pp")
|
||||||
else:
|
else:
|
||||||
VERSION = ParsePandaVersion("dtool/PandaVersion.pp")
|
VERSION = ParsePandaVersion("dtool/PandaVersion.pp")
|
||||||
|
|
||||||
if (COREAPI_VERSION == None):
|
if (COREAPI_VERSION is None):
|
||||||
COREAPI_VERSION = VERSION
|
COREAPI_VERSION = VERSION
|
||||||
|
|
||||||
|
if (DEBVERSION is None):
|
||||||
|
DEBVERSION = VERSION
|
||||||
|
|
||||||
MAJOR_VERSION = VERSION[:3]
|
MAJOR_VERSION = VERSION[:3]
|
||||||
|
|
||||||
if (RUNTIME or RTDIST):
|
if (RUNTIME or RTDIST):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user