Commits

Anthony Tuininga committed 8cc3f47

Create the import library if the environment variable CX_LOGGING_LIB_DIR is
defined.

  • Participants
  • Parent commits 04dbece

Comments (0)

Files changed (1)

 from distutils.extension import Extension
 from distutils import sysconfig
 
-BUILD_VERSION = "1.3"
+BUILD_VERSION = "HEAD"
 
 # setup extra compilation and linking args
 libs = []
 if sys.platform == "win32":
     extraLinkArgs.append("-Wl,--add-stdcall-alias")
     extraLinkArgs.append("-Wl,--enable-stdcall-fixup")
+    importLibraryDir = os.environ.get("CX_LOGGING_LIB_DIR")
+    if importLibraryDir is not None:
+        importLibraryName = os.path.join(importLibraryDir, "libcx_Logging.a")
+        extraLinkArgs.append("-Wl,--out-implib=%s" % importLibraryName)
     if sys.version_info[:2] < (2, 4):
         import win32api
         extraLinkArgs.append(win32api.GetModuleFileName(sys.dllhandle))