User 'FRAMEWORKS' instead of 'LIBS' on darwin (macosx) master
Stefan Bund [Tue, 19 Oct 2010 10:46:08 +0000 (12:46 +0200)]
qt4.py

diff --git a/qt4.py b/qt4.py
index d2cef9d..e91702b 100644 (file)
--- a/qt4.py
+++ b/qt4.py
@@ -470,8 +470,12 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) :
     if sys.platform in ["darwin", "linux2"] and not crosscompiling :
         if debug : debugSuffix = '_debug'
         for module in modules :
-            self.AppendUnique(LIBS=[module+debugSuffix])
-            self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")])
+            if sys.platform == "darwin":
+                self.AppendUnique(FRAMEWORKS=[module+debugSuffix])
+                self.AppendUnique(FRAMEWORKPATH=[os.path.join("$QTDIR","lib")])
+            else:
+                self.AppendUnique(LIBS=[module+debugSuffix])
+                self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")])
             self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4")])
             self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4",module)])
         if 'QtDBus' in modules: