summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authormichael.bruning@digia.com <michael.bruning@digia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>2012-12-10 13:14:10 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-03 14:57:01 +0200
commitfedafb702ebf6bd384e32eddda377e659f09326d (patch)
treee519ecc1599e6676bd40c348b1cc0f4552e4a3f6 /Source
parentfad1b063ed174a07392561c0323355115aa66992 (diff)
downloadqtwebkit-fedafb702ebf6bd384e32eddda377e659f09326d.tar.gz
[Qt] Builds for Mac are tied to the OS system instead of the SDK version.
https://bugs.webkit.org/show_bug.cgi?id=104529 Reviewed by Simon Hausmann. Using work by Eike Ziller <eike.ziller@digia.com>. The build system now first tries to assign the correct system libraries for the SDK being used for Mac builds. If this does not yield any result, it falls back to using the Mac OS version to determine the correct library. No new tests (not applicable). * WebCore.pri: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137139 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I2ece3075a797f07c6774c508252bd735c625314b Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/ChangeLog18
-rw-r--r--Source/WebCore/WebCore.pri25
2 files changed, 34 insertions, 9 deletions
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index e08750c67..e6af40aa4 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,21 @@
+2012-12-10 Michael Brüning <michael.bruning@digia.com>
+
+ [Qt] Builds for Mac are tied to the OS system instead of the SDK version.
+ https://bugs.webkit.org/show_bug.cgi?id=104529
+
+ Reviewed by Simon Hausmann.
+
+ Using work by Eike Ziller <eike.ziller@digia.com>.
+
+ The build system now first tries to assign the correct system libraries
+ for the SDK being used for Mac builds. If this does not yield any
+ result, it falls back to using the Mac OS version to determine the
+ correct library.
+
+ No new tests (not applicable).
+
+ * WebCore.pri:
+
2013-02-21 Levi Weintraub <leviw@chromium.org>
ASSERTION FAILED: !object || object->isBox(), UNKNOWN in WebCore::RenderListItem::positionListMarker
diff --git a/Source/WebCore/WebCore.pri b/Source/WebCore/WebCore.pri
index fc504427c..53fe27ab5 100644
--- a/Source/WebCore/WebCore.pri
+++ b/Source/WebCore/WebCore.pri
@@ -185,18 +185,25 @@ enable?(VIDEO) {
-framework QuartzCore -framework QTKit \
-framework Security -framework IOKit
- # We can know the Mac OS version by using the Darwin major version
DARWIN_VERSION = $$split(QMAKE_HOST.version, ".")
DARWIN_MAJOR_VERSION = $$first(DARWIN_VERSION)
- equals(DARWIN_MAJOR_VERSION, "12") {
- LIBS += $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceMountainLion.a
- } else:equals(DARWIN_MAJOR_VERSION, "11") {
- LIBS += $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceLion.a
- } else:equals(DARWIN_MAJOR_VERSION, "10") {
- LIBS += $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a
- } else:equals(DARWIN_MAJOR_VERSION, "9") {
- LIBS += $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceLeopard.a
+
+ # We first check if a specific SDK is set to be used for the build.
+ contains(QMAKE_MAC_SDK, ".*MacOSX10.7.sdk.*") {
+ SYSTEM_LIBRARY_PATH = $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceLion.a
+ } else:contains(QMAKE_MAC_SDK, ".*MacOSX10.8.sdk.*") {
+ SYSTEM_LIBRARY_PATH = $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceMountainLion.a
+ }
+
+ # If the previous check did not yield a result, we resort to the Darwin version.
+ isEmpty(SYSTEM_LIBRARY_PATH) {
+ equals(DARWIN_MAJOR_VERSION, "11") {
+ SYSTEM_LIBRARY_PATH = $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceLion.a
+ } else:equals(DARWIN_MAJOR_VERSION, "12") {
+ SYSTEM_LIBRARY_PATH = $${ROOT_WEBKIT_DIR}/WebKitLibraries/libWebKitSystemInterfaceMountainLion.a
+ }
}
+ LIBS += $$SYSTEM_LIBRARY_PATH
} else:use?(GSTREAMER) {
INCLUDEPATH += $$SOURCE_DIR/platform/graphics/gstreamer
} else:use?(QT_MULTIMEDIA) {