فهرست منبع

generate .lib for .pyd files on Windows.

rdb 11 سال پیش
والد
کامیت
260cb66c54
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      makepanda/makepanda.py

+ 5 - 5
makepanda/makepanda.py

@@ -1354,12 +1354,12 @@ def CompileLink(dll, obj, opts):
             cmd += ' /OUT:' + BracketNameWithQuotes(dll)
             cmd += ' /OUT:' + BracketNameWithQuotes(dll)
             subsystem = GetValueOption(opts, "SUBSYSTEM:")
             subsystem = GetValueOption(opts, "SUBSYSTEM:")
             if (subsystem): cmd += " /SUBSYSTEM:" + subsystem
             if (subsystem): cmd += " /SUBSYSTEM:" + subsystem
-            if (dll.endswith(".dll")):
-                cmd += ' /IMPLIB:' + GetOutputDir() + '/lib/'+os.path.splitext(os.path.basename(dll))[0]+".lib"
+            if (dll.endswith(".dll") or dll.endswith(".pyd")):
+                cmd += ' /IMPLIB:' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(dll))[0] + ".lib"
             for (opt, dir) in LIBDIRECTORIES:
             for (opt, dir) in LIBDIRECTORIES:
                 if (opt=="ALWAYS") or (opt in opts): cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
                 if (opt=="ALWAYS") or (opt in opts): cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
             for x in obj:
             for x in obj:
-                if (x.endswith(".dll")):
+                if (x.endswith(".dll") or x.endswith(".pyd")):
                     cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
                     cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
                 elif (x.endswith(".lib")):
                 elif (x.endswith(".lib")):
                     dname = os.path.splitext(os.path.basename(x))[0] + ".dll"
                     dname = os.path.splitext(os.path.basename(x))[0] + ".dll"
@@ -1401,12 +1401,12 @@ def CompileLink(dll, obj, opts):
             cmd += ' /OUT:' + BracketNameWithQuotes(dll)
             cmd += ' /OUT:' + BracketNameWithQuotes(dll)
             subsystem = GetValueOption(opts, "SUBSYSTEM:")
             subsystem = GetValueOption(opts, "SUBSYSTEM:")
             if (subsystem): cmd += " /SUBSYSTEM:" + subsystem
             if (subsystem): cmd += " /SUBSYSTEM:" + subsystem
-            if (dll.endswith(".dll")):
+            if (dll.endswith(".dll") or dll.endswith(".pyd")):
                 cmd += ' /IMPLIB:' + GetOutputDir() + '/lib/'+os.path.splitext(os.path.basename(dll))[0]+".lib"
                 cmd += ' /IMPLIB:' + GetOutputDir() + '/lib/'+os.path.splitext(os.path.basename(dll))[0]+".lib"
             for (opt, dir) in LIBDIRECTORIES:
             for (opt, dir) in LIBDIRECTORIES:
                 if (opt=="ALWAYS") or (opt in opts): cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
                 if (opt=="ALWAYS") or (opt in opts): cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
             for x in obj:
             for x in obj:
-                if (x.endswith(".dll")):
+                if (x.endswith(".dll") or x.endswith(".pyd")):
                     cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
                     cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
                 elif (x.endswith(".lib")):
                 elif (x.endswith(".lib")):
                     dname = os.path.splitext(dll)[0]+".dll"
                     dname = os.path.splitext(dll)[0]+".dll"