summaryrefslogtreecommitdiffstats
path: root/Source/WebKit.pri
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-24 11:24:40 +0100
committerBen Murdoch <benm@google.com>2011-06-02 09:53:15 +0100
commit81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch)
tree7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebKit.pri
parent94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff)
downloadexternal_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz
external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebKit.pri')
-rw-r--r--Source/WebKit.pri47
1 files changed, 42 insertions, 5 deletions
diff --git a/Source/WebKit.pri b/Source/WebKit.pri
index e7a3b20..f61b489 100644
--- a/Source/WebKit.pri
+++ b/Source/WebKit.pri
@@ -3,8 +3,24 @@
# Detect that we are building as a standalone package by the presence of
# either the generated files directory or as part of the Qt package through
# QTDIR_build
-CONFIG(QTDIR_build): CONFIG += standalone_package
-else:exists($$PWD/WebCore/generated): CONFIG += standalone_package
+CONFIG(QTDIR_build) {
+ CONFIG += standalone_package
+ # Make sure we compile both debug and release on mac when inside Qt.
+ # This line was extracted from qbase.pri instead of including the whole file
+ win32|mac:!macx-xcode:CONFIG += debug_and_release
+} else {
+ !CONFIG(release, debug|release) {
+ OBJECTS_DIR = obj/debug
+ } else { # Release
+ OBJECTS_DIR = obj/release
+ DEFINES *= NDEBUG
+ }
+ exists($$PWD/WebCore/generated):CONFIG += standalone_package
+ # Make sure that build_all follows the build_all config in WebCore
+ mac:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework):!build_pass:CONFIG += build_all
+}
+
+CONFIG(standalone_package): DEFINES *= NDEBUG
CONFIG += depend_includepath
DEPENDPATH += $$OUT_PWD
@@ -51,8 +67,21 @@ CONFIG(release, debug|release) {
DEFINES += NDEBUG
}
-INCLUDEPATH += $$OUTPUT_DIR/include/QtWebKit
-INCLUDEPATH += $$QT.script.includes
+INCLUDEPATH += \
+ $$PWD \
+ $$OUTPUT_DIR/include/QtWebKit \
+ $$OUTPUT_DIR/include \
+ $$QT.script.includes
+
+webkit2:INCLUDEPATH *= $$OUTPUT_DIR/include/WebKit2
+
+# Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
+win32-g++* {
+ TMPPATH = $$quote($$(INCLUDE))
+ QMAKE_INCDIR_POST += $$split(TMPPATH,";")
+ TMPPATH = $$quote($$(LIB))
+ QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
+}
CONFIG -= warn_on
*-g++*:QMAKE_CXXFLAGS += -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self
@@ -88,6 +117,9 @@ valgrind {
JAVASCRIPTCORE_JIT = no
}
+# Disable dependency to a specific version of a Qt package for non-production builds
+symbian:!CONFIG(production):default_deployment.pkg_prerules -= pkg_depends_qt
+
##### Defaults for some mobile platforms
symbian|maemo5|maemo6 {
CONFIG += disable_uitools
@@ -100,7 +132,12 @@ symbian|maemo5|maemo6 {
####
-disable_uitools: DEFINES *= QT_NO_UITOOLS
+contains(QT_CONFIG, modular):!contains(QT_CONFIG, uitools)|disable_uitools: DEFINES *= QT_NO_UITOOLS
+
+!contains(QT_CONFIG, modular) {
+ QT.phonon.includes = $$QMAKE_INCDIR_QT/phonon
+ QT.phonon.libs = $$QMAKE_LIBDIR_QT
+}
# Disable a few warnings on Windows. The warnings are also
# disabled in WebKitLibraries/win/tools/vsprops/common.vsprops