source: trunk/src/3rdparty/webkit/WebKit.pri@ 1057

Last change on this file since 1057 was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 2.7 KB
Line 
1# Include file to make it easy to include WebKit into Qt projects
2
3# Detect that we are building as a standalone package by the presence of
4# either the generated files directory or as part of the Qt package through
5# QTDIR_build
6CONFIG(QTDIR_build): CONFIG += standalone_package
7else:exists($$PWD/WebCore/generated): CONFIG += standalone_package
8
9CONFIG += depend_includepath
10
11DEFINES += BUILDING_QT__=1
12building-libs {
13 win32-msvc*|win32-icc: INCLUDEPATH += $$PWD/JavaScriptCore/os-win32
14} else {
15 CONFIG(QTDIR_build) {
16 QT += webkit
17 } else {
18 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
19 QTWEBKITLIBNAME = QtWebKit
20 mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) {
21 LIBS += -framework $$QTWEBKITLIBNAME
22 QMAKE_FRAMEWORKPATH = $$OUTPUT_DIR/lib $$QMAKE_FRAMEWORKPATH
23 } else {
24 win32-*|wince* {
25 !CONFIG(release, debug|release):build_pass: QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}d
26 QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}$${QT_MAJOR_VERSION}
27 win32-g++*: LIBS += -l$$QTWEBKITLIBNAME
28 else: LIBS += $${QTWEBKITLIBNAME}.lib
29 } else {
30 LIBS += -lQtWebKit
31 symbian {
32 TARGET.EPOCSTACKSIZE = 0x14000 // 80 kB
33 TARGET.EPOCHEAPSIZE = 0x20000 0x6000000 // Min 128kB, Max 32MB
34 }
35 }
36 }
37 }
38 DEPENDPATH += $$PWD/WebKit/qt/Api
39}
40greaterThan(QT_MINOR_VERSION, 5):DEFINES += WTF_USE_ACCELERATED_COMPOSITING
41
42!mac:!unix|symbian {
43 DEFINES += USE_SYSTEM_MALLOC
44}
45
46CONFIG(release, debug|release) {
47 DEFINES += NDEBUG
48}
49
50BASE_DIR = $$PWD
51
52symbian {
53 INCLUDEPATH += $$PWD/include/QtWebKit
54} else {
55 INCLUDEPATH += $$OUTPUT_DIR/include/QtWebKit
56}
57
58CONFIG -= warn_on
59*-g++*:QMAKE_CXXFLAGS += -Wall -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
60
61# Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT
62symbian|*-armcc {
63 RVCT_COMMON_CFLAGS = --gnu --diag_suppress 68,111,177,368,830,1293
64 RVCT_COMMON_CXXFLAGS = $$RVCT_COMMON_CFLAGS --no_parse_templates
65}
66
67*-armcc {
68 QMAKE_CFLAGS += $$RVCT_COMMON_CFLAGS
69 QMAKE_CXXFLAGS += $$RVCT_COMMON_CXXFLAGS
70}
71
72symbian {
73 QMAKE_CXXFLAGS.ARMCC += $$RVCT_COMMON_CXXFLAGS
74}
75
76symbian|maemo5: DEFINES *= QT_NO_UITOOLS
77
78contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools
79
80# Disable a few warnings on Windows. The warnings are also
81# disabled in WebKitLibraries/win/tools/vsprops/common.vsprops
82win32-msvc*|wince*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996
83
Note: See TracBrowser for help on using the repository browser.