mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix for MAKEPANDA_THIRDPARTY on windows
This commit is contained in:
parent
5d7cf87d82
commit
30b2463a05
@ -1662,12 +1662,17 @@ def LibDirectory(opt, dir):
|
|||||||
def LibName(opt, name):
|
def LibName(opt, name):
|
||||||
# Check to see if the lib file actually exists for the thirdparty library given
|
# Check to see if the lib file actually exists for the thirdparty library given
|
||||||
# Are we a thirdparty library?
|
# Are we a thirdparty library?
|
||||||
if name.startswith("thirdparty"):
|
if name.startswith(GetThirdpartyDir()):
|
||||||
# Does this lib exist?
|
# Does this lib exist?
|
||||||
if not os.path.exists(name):
|
if not os.path.exists(name):
|
||||||
PkgDisable(opt)
|
|
||||||
WARNINGS.append(name + " not found. Skipping Package " + opt)
|
WARNINGS.append(name + " not found. Skipping Package " + opt)
|
||||||
|
if (opt in PkgListGet()):
|
||||||
|
print "%sWARNING:%s Could not locate thirdparty package %s, excluding from build" % (GetColor("red"), GetColor(), opt.lower())
|
||||||
|
PkgDisable(opt)
|
||||||
return
|
return
|
||||||
|
else:
|
||||||
|
print "%sERROR:%s Could not locate thirdparty package %s, aborting build" % (GetColor("red"), GetColor(), opt.lower())
|
||||||
|
exit()
|
||||||
LIBNAMES.append((opt, name))
|
LIBNAMES.append((opt, name))
|
||||||
|
|
||||||
def DefSymbol(opt, sym, val):
|
def DefSymbol(opt, sym, val):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user