mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Support searching in custom inc directories
This commit is contained in:
parent
ac4f2a3d37
commit
3f0beb2537
@ -1015,6 +1015,10 @@ def PkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, fram
|
|||||||
elif (platform.uname()[1]=="pcbsd" and len(glob.glob("/usr/PCBSD/local/include/" + i)) > 0):
|
elif (platform.uname()[1]=="pcbsd" and len(glob.glob("/usr/PCBSD/local/include/" + i)) > 0):
|
||||||
incdir = sorted(glob.glob("/usr/PCBSD/local/include/" + i))[-1]
|
incdir = sorted(glob.glob("/usr/PCBSD/local/include/" + i))[-1]
|
||||||
else:
|
else:
|
||||||
|
# Try searching in the package's IncDirectories.
|
||||||
|
for ppkg, pdir in INCDIRECTORIES:
|
||||||
|
if (pkg == ppkg and len(glob.glob(os.path.join(pdir, i))) > 0):
|
||||||
|
incdir = sorted(glob.glob(os.path.join(pdir, i)))
|
||||||
if (VERBOSE and i.endswith(".h")):
|
if (VERBOSE and i.endswith(".h")):
|
||||||
print GetColor("cyan") + "Couldn't find header file " + i + GetColor()
|
print GetColor("cyan") + "Couldn't find header file " + i + GetColor()
|
||||||
have_pkg = False
|
have_pkg = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user