mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fixed a comment typo... used // instead of #
Added warnings and automatic checking to see if thirdparty libs exists. --everything now works with 64bit even though we have an incomplete thirdparty library set
This commit is contained in:
parent
c7ddc2094c
commit
ece33e86e6
@ -796,7 +796,7 @@ DTOOL_CONFIG=[
|
||||
("HAVE_DX9", 'UNDEF', 'UNDEF'),
|
||||
("HAVE_CHROMIUM", 'UNDEF', 'UNDEF'),
|
||||
("HAVE_THREADS", '1', '1'),
|
||||
("SIMPLE_THREADS", '1', '1'),
|
||||
("SIMPLE_THREADS", 'UNDEF', '1'),
|
||||
("HAVE_AUDIO", '1', '1'),
|
||||
("NOTIFY_DEBUG", 'UNDEF', 'UNDEF'),
|
||||
("DO_PSTATS", 'UNDEF', 'UNDEF'),
|
||||
@ -917,7 +917,7 @@ def WriteConfigSettings():
|
||||
dtool_config={}
|
||||
prc_parameters={}
|
||||
|
||||
if (sys.platform == "win32"):
|
||||
if (sys.platform == "win32") or (sys.platform == "win64"):
|
||||
for key,win,unix in DTOOL_CONFIG:
|
||||
dtool_config[key] = win
|
||||
for key,win,unix in PRC_PARAMETERS:
|
||||
|
@ -884,10 +884,10 @@ def SdkLocateMSPlatform():
|
||||
# Doesn't work with the Express versions, so we're checking for the "atlmfc" dir, which is not in the Express
|
||||
if (platsdk == 0 and os.path.isdir(os.path.join(GetProgramFiles(), "Microsoft Visual Studio 9\\VC\\atlmfc"))):
|
||||
platsdk = os.path.join(GetProgramFiles(), "Microsoft Visual Studio 9\\VC\\PlatformSDK")
|
||||
//This may not be the best idea but it does give a warning
|
||||
#This may not be the best idea but it does give a warning
|
||||
if (platsdk == 0):
|
||||
if( os.environ.has_key("WindowsSdkDir") ):
|
||||
print "Warning: Windows SDK directory not found in registry, found in Environment variables instead"
|
||||
WARNINGS.append("Windows SDK directory not found in registry, found in Environment variables instead")
|
||||
platsdk = os.environ["WindowsSdkDir"]
|
||||
if (platsdk != 0):
|
||||
if (not platsdk.endswith("//")):
|
||||
@ -1002,6 +1002,14 @@ def LibDirectory(opt, dir):
|
||||
LIBDIRECTORIES.append((opt, dir))
|
||||
|
||||
def LibName(opt, name):
|
||||
#check to see if the lib file actually exists for the thrid party library given
|
||||
#are we a thrid party library?
|
||||
if name.startswith("thirdparty"):
|
||||
#does this lib exists
|
||||
if not os.path.exists(name):
|
||||
PkgDisable(opt)
|
||||
WARNINGS.append(name + " not found. Skipping Package " + opt)
|
||||
return
|
||||
LIBNAMES.append((opt, name))
|
||||
|
||||
def DefSymbol(opt, sym, val):
|
||||
|
Loading…
x
Reference in New Issue
Block a user