aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qtquick1/qtquick1.pro13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/qtquick1/qtquick1.pro b/src/qtquick1/qtquick1.pro
index d70b532caf..65010fecb8 100644
--- a/src/qtquick1/qtquick1.pro
+++ b/src/qtquick1/qtquick1.pro
@@ -40,3 +40,16 @@ SOURCES += qtquick1.cpp
DEFINES += QT_NO_OPENTYPE
INCLUDEPATH += $$QT.corelib.sources/../src/3rdparty/harfbuzz/src
+mac {
+ # FIXME: this is a workaround for broken qmake logic in qtAddModule()
+ # This function refuses to use frameworks unless the framework exists on
+ # the filesystem at the time qmake is run, resulting in a build failure
+ # if QtQuick1 is qmaked before QtDeclarative is built and frameworks are
+ # in use. qtAddLibrary() contains correct logic to deal with this, so
+ # we'll explicitly call that for now.
+ load(qt)
+ LIBS -= -lQtDeclarative # in non-framework builds, these should be re-added
+ LIBS -= -lQtDeclarative_debug # within the qtAddLibrary if appropriate, so no
+ qtAddLibrary(QtDeclarative) # harm done :)
+}
+