Explorar o código

Support searching in custom inc directories

rdb %!s(int64=16) %!d(string=hai) anos
pai
achega
3f0beb2537
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      makepanda/makepandacore.py

+ 4 - 0
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