diff options
| -rw-r--r-- | Source/WebCore/ChangeLog | 18 | ||||
| -rw-r--r-- | Source/WebCore/WebCore.pri | 25 |
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) { |
