Browse Source

makepanda: support .hpp header files

rdb 5 years ago
parent
commit
22509e35cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      makepanda/makepandacore.py

+ 2 - 2
makepanda/makepandacore.py

@@ -12,7 +12,7 @@ import pickle
 import _thread as thread
 import _thread as thread
 import configparser
 import configparser
 
 
-SUFFIX_INC = [".cxx",".cpp",".c",".h",".I",".yxx",".lxx",".mm",".rc",".r"]
+SUFFIX_INC = [".cxx",".cpp",".c",".h",".hpp",".I",".yxx",".lxx",".mm",".rc",".r"]
 SUFFIX_DLL = [".dll",".dlo",".dle",".dli",".dlm",".mll",".exe",".pyd",".ocx"]
 SUFFIX_DLL = [".dll",".dlo",".dle",".dli",".dlm",".mll",".exe",".pyd",".ocx"]
 SUFFIX_LIB = [".lib",".ilb"]
 SUFFIX_LIB = [".lib",".ilb"]
 VCS_DIRS = set(["CVS", "CVSROOT", ".git", ".hg", "__pycache__"])
 VCS_DIRS = set(["CVS", "CVSROOT", ".git", ".hg", "__pycache__"])
@@ -2992,7 +2992,7 @@ def CopyAllFiles(dstdir, srcdir, suffix=""):
         CopyFile(dstdir + x, srcdir + x)
         CopyFile(dstdir + x, srcdir + x)
 
 
 def CopyAllHeaders(dir, skip=[]):
 def CopyAllHeaders(dir, skip=[]):
-    for filename in GetDirectoryContents(dir, ["*.h", "*.I", "*.T"], skip):
+    for filename in GetDirectoryContents(dir, ["*.h", "*.hpp", "*.I", "*.T"], skip):
         srcfile = dir + "/" + filename
         srcfile = dir + "/" + filename
         dstfile = OUTPUTDIR + "/include/" + filename
         dstfile = OUTPUTDIR + "/include/" + filename
         if (NeedsBuild([dstfile], [srcfile])):
         if (NeedsBuild([dstfile], [srcfile])):