Debian Codegraph @

src/3rdparty/javascriptcore/WebKit.pri

raw
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
6 CONFIG(QTDIR_build): CONFIG += standalone_package
7 else:exists($$PWD/WebCore/generated): CONFIG += standalone_package
8
9 CONFIG(standalone_package) {
10 OUTPUT_DIR=$$PWD
11 }
12
13 isEmpty(OUTPUT_DIR) {
14 CONFIG(debug, debug|release) {
15 OUTPUT_DIR=$$PWD/WebKitBuild/Debug
16 } else { # Release
17 OUTPUT_DIR=$$PWD/WebKitBuild/Release
18 }
19 }
20
21 DEFINES += BUILDING_QT__=1
22 building-libs {
23 contains(MSVC_VER, "(9|10|11|12)\.0"): INCLUDEPATH += $$PWD/JavaScriptCore/os-win32
24 } else {
25 CONFIG(QTDIR_build) {
26 QT += webkit
27 } else {
28 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
29 QTWEBKITLIBNAME = QtWebKit
30 mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) {
31 LIBS += -framework $$QTWEBKITLIBNAME
32 QMAKE_FRAMEWORKPATH = $$OUTPUT_DIR/lib $$QMAKE_FRAMEWORKPATH
33 } else {
34 win32-*|wince* {
35 CONFIG(debug, debug|release):build_pass: QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}d
36 QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}$${QT_MAJOR_VERSION}
37 mingw: LIBS += -l$$QTWEBKITLIBNAME
38 else: LIBS += $${QTWEBKITLIBNAME}.lib
39 } else {
40 LIBS += -lQtWebKit
41 }
42 }
43 }
44 }
45 greaterThan(QT_MINOR_VERSION, 5):DEFINES += WTF_USE_ACCELERATED_COMPOSITING
46
47 !mac:!unix {
48 DEFINES += USE_SYSTEM_MALLOC
49 }
50
51 CONFIG(release, debug|release) {
52 DEFINES += NDEBUG
53 }
54
55 BASE_DIR = $$PWD
56 INCLUDEPATH += $$PWD/WebKit/qt/Api
57
58 gcc: QMAKE_CXXFLAGS += -fno-strict-aliasing
59
60 CONFIG -= warn_on
61 *-g++*:QMAKE_CXXFLAGS += -Wall -Wreturn-type -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self
62
63 # Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT
64 *-armcc {
65 RVCT_COMMON_CFLAGS = --gnu --diag_suppress 68,111,177,368,830,1293
66 RVCT_COMMON_CXXFLAGS = $$RVCT_COMMON_CFLAGS --no_parse_templates
67 }
68
69 *-armcc {
70 QMAKE_CFLAGS += $$RVCT_COMMON_CFLAGS
71 QMAKE_CXXFLAGS += $$RVCT_COMMON_CXXFLAGS
72 }
73
74 maemo5: DEFINES *= QT_NO_UITOOLS
75
76 contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools
77
78 # Disable a few warnings on Windows. The warnings are also
79 # disabled in WebKitLibraries/win/tools/vsprops/common.vsprops
80 win32-msvc*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996
81