[PyKDE] msvc2005

Filipe Sousa filipe at ipb.pt
Thu Nov 16 23:09:56 GMT 2006


Phil Thompson wrote:
> 
> It should work - if you give the right -p flag to configure.py.

and that's what i did

C:\sip-4.5>python configure.py -p win32-msvc2005
This is SIP 4.5 for Python 2.5 on win32.
The SIP code generator will be installed in c:\Python25.
The SIP module will be installed in c:\Python25\Lib\site-packages.
The SIP header file will be installed in c:\Python25\include.
The default directory to install .sip files in is c:\Python25\sip.
The platform/compiler configuration is win32-msvc2005.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...

C:\sip-4.5>

> What was the change you made?

se the attached diff

> Phil
> 


-- 
Filipe Sousa
-------------- next part --------------
--- c:\sip-4.5\sipconfig.py	Mon Nov 13 12:23:06 2006
+++ c:\Python25\Lib\site-packages\sipconfig.py	Mon Nov 13 12:22:25 2006
@@ -488,7 +488,7 @@
 
                 libs.append(self.platform_lib(py_lib))
 
-        if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
             if win_exceptions:
                 cflags_exceptions = "CFLAGS_EXCEPTIONS_ON"
                 cxxflags_exceptions = "CXXFLAGS_EXCEPTIONS_ON"
@@ -542,7 +542,7 @@
             cxxflags_debug = "CXXFLAGS_RELEASE"
             lflags_debug = "LFLAGS_RELEASE"
 
-        if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
             if self._threaded:
                 cflags.extend(self.optional_list(cflags_mt))
                 cxxflags.extend(self.optional_list(cxxflags_mt))
@@ -673,7 +673,7 @@
                 # Windows needs the version number appended if Qt is a DLL.
                 qt_lib = self.config.qt_lib
 
-                if self.generator in ("MSVC", "MSVC.NET", "BMAKE") and win_shared:
+                if self.generator in ("MSVC", "MSVC.NET", "BMAKE", "MSVC2005") and win_shared:
                     qt_lib = qt_lib + string.replace(version_to_string(self.config.qt_version), ".", "")
 
                     if self.config.qt_edition == "non-commercial":
@@ -830,7 +830,7 @@
         clib is the library name in cannonical form.
         framework is set of the library is implemented as a MacOS framework.
         """
-        if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
             plib = clib + ".lib"
         elif sys.platform == "darwin" and framework:
             plib = "-framework " + clib
@@ -848,7 +848,7 @@
         """
         prl_libs = []
 
-        if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
             prl_name = os.path.join(self.config.qt_lib_dir, clib + ".prl")
         elif sys.platform == "darwin" and framework:
             prl_name = os.path.join(self.config.qt_lib_dir, clib + ".framework", clib + ".prl")
@@ -934,7 +934,7 @@
                 dict[i] = ""
 
         # Generate the list of objects.
-        if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
             ext = ".obj"
         else:
             ext = ".o"
@@ -1026,7 +1026,7 @@
 
         libs = []
 
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             libdir_prefix = "/LIBPATH:"
         else:
             libdir_prefix = "-L"
@@ -1060,7 +1060,7 @@
         else:
             mfile.write(".SUFFIXES: .c .cpp .cc .cxx .C\n\n")
 
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             mfile.write("""
 {.}.cpp{}.obj::
 \t$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -Fo @<<
@@ -1500,7 +1500,7 @@
         mfile.write("\n")
 
         if self.static:
-            if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
+            if self.generator in ("MSVC", "MSVC.NET", "MSVC2005", "BMAKE"):
                 mfile.write("LIB = %s\n" % self.required_string("LIB"))
             if self.generator == "MINGW":
                 mfile.write("AR = %s\n" % self.required_string("LIB"))
@@ -1522,7 +1522,7 @@
         """
         mfile.write("\n$(TARGET): $(OFILES)\n")
 
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             if self.static:
                 mfile.write("\t$(LIB) /OUT:$(TARGET) @<<\n")
                 mfile.write("\t  $(OFILES)\n")
@@ -1682,7 +1682,7 @@
         if self.generator != "BMAKE":
             build.append(source)
 
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             build.append("-Fe")
             build.append("/link")
             libdir_prefix = "/LIBPATH:"
@@ -1735,7 +1735,7 @@
     def finalise(self):
         """Finalise the macros for a program Makefile.
         """
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             self.LFLAGS.append("/INCREMENTAL:NO")
 
         if self.console:
@@ -1774,7 +1774,7 @@
         """
         mfile.write("\n$(TARGET): $(OFILES)\n")
 
-        if self.generator in ("MSVC", "MSVC.NET"):
+        if self.generator in ("MSVC", "MSVC.NET", "MSVC2005"):
             mfile.write("\t$(LINK) $(LFLAGS) /OUT:$(TARGET) @<<\n")
             mfile.write("\t  $(OFILES) $(LIBS)\n")
             mfile.write("<<\n")


More information about the PyQt mailing list