From 3f0beb25373a1155b794e016d6c0e69491bfa264 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 21 Sep 2009 10:56:20 +0000 Subject: [PATCH] Support searching in custom inc directories --- makepanda/makepandacore.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 470cc5752d..6179ec6100 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -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): incdir = sorted(glob.glob("/usr/PCBSD/local/include/" + i))[-1] 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")): print GetColor("cyan") + "Couldn't find header file " + i + GetColor() have_pkg = False