blob: 312232670f55ee46f1607e1ddc45e4be694c4431 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# WebKit2 - Qt4 build info
SOURCE_DIR = $$replace(PWD, /WebKit2, "")
# Use a config-specific target to prevent parallel builds file clashes on Mac
mac: CONFIG(debug, debug|release): WEBKIT2_TARGET = webkit2d
else: WEBKIT2_TARGET = webkit2
# Output in WebKit2/<config>
CONFIG(debug, debug|release) : WEBKIT2_DESTDIR = debug
else: WEBKIT2_DESTDIR = release
CONFIG(standalone_package) {
isEmpty(WEBKIT2_GENERATED_SOURCES_DIR):WEBKIT2_GENERATED_SOURCES_DIR = $$PWD/generated
} else {
isEmpty(WEBKIT2_GENERATED_SOURCES_DIR):WEBKIT2_GENERATED_SOURCES_DIR = $$OUTPUT_DIR/WebKit2/generated
}
WEBKIT2_INCLUDEPATH = \
$$SOURCE_DIR/WebKit2 \
$$SOURCE_DIR/WebKit2/Platform \
$$SOURCE_DIR/WebKit2/Platform/CoreIPC \
$$SOURCE_DIR/WebKit2/Platform/qt \
$$SOURCE_DIR/WebKit2/Shared \
$$SOURCE_DIR/WebKit2/Shared/API/c \
$$SOURCE_DIR/WebKit2/Shared/CoreIPCSupport \
$$SOURCE_DIR/WebKit2/Shared/Plugins \
$$SOURCE_DIR/WebKit2/Shared/Plugins/Netscape \
$$SOURCE_DIR/WebKit2/Shared/qt \
$$SOURCE_DIR/WebKit2/UIProcess \
$$SOURCE_DIR/WebKit2/UIProcess/API/C \
$$SOURCE_DIR/WebKit2/UIProcess/API/cpp \
$$SOURCE_DIR/WebKit2/UIProcess/API/cpp/qt \
$$SOURCE_DIR/WebKit2/UIProcess/API/qt \
$$SOURCE_DIR/WebKit2/UIProcess/Authentication \
$$SOURCE_DIR/WebKit2/UIProcess/Downloads \
$$SOURCE_DIR/WebKit2/UIProcess/Launcher \
$$SOURCE_DIR/WebKit2/UIProcess/Plugins \
$$SOURCE_DIR/WebKit2/UIProcess/qt \
$$SOURCE_DIR/WebKit2/WebProcess \
$$SOURCE_DIR/WebKit2/WebProcess/ApplicationCache \
$$SOURCE_DIR/WebKit2/WebProcess/Authentication \
$$SOURCE_DIR/WebKit2/WebProcess/Cookies \
$$SOURCE_DIR/WebKit2/WebProcess/Cookies/qt \
$$SOURCE_DIR/WebKit2/WebProcess/Downloads \
$$SOURCE_DIR/WebKit2/WebProcess/Downloads/qt \
$$SOURCE_DIR/WebKit2/WebProcess/FullScreen \
$$SOURCE_DIR/WebKit2/WebProcess/Geolocation \
$$SOURCE_DIR/WebKit2/WebProcess/IconDatabase \
$$SOURCE_DIR/WebKit2/WebProcess/InjectedBundle \
$$SOURCE_DIR/WebKit2/WebProcess/InjectedBundle/DOM \
$$SOURCE_DIR/WebKit2/WebProcess/InjectedBundle/API/c \
$$SOURCE_DIR/WebKit2/WebProcess/KeyValueStorage \
$$SOURCE_DIR/WebKit2/WebProcess/MediaCache \
$$SOURCE_DIR/WebKit2/WebProcess/Plugins \
$$SOURCE_DIR/WebKit2/WebProcess/Plugins/Netscape \
$$SOURCE_DIR/WebKit2/WebProcess/ResourceCache \
$$SOURCE_DIR/WebKit2/WebProcess/WebCoreSupport \
$$SOURCE_DIR/WebKit2/WebProcess/WebCoreSupport/qt \
$$SOURCE_DIR/WebKit2/WebProcess/WebPage \
$$SOURCE_DIR/WebKit2/WebProcess/qt \
$$SOURCE_DIR/WebKit2/PluginProcess
# On Symbian PREPEND_INCLUDEPATH is the best way to make sure that WebKit headers
# are included before platform headers.
symbian {
PREPEND_INCLUDEPATH = $$WEBKIT2_INCLUDEPATH $$WEBKIT2_GENERATED_SOURCES_DIR $$PREPEND_INCLUDEPATH
} else {
INCLUDEPATH = $$WEBKIT2_INCLUDEPATH $$WEBKIT2_GENERATED_SOURCES_DIR $$INCLUDEPATH
}
defineTest(prependWebKit2Lib) {
pathToWebKit2Output = $$ARGS/$$WEBKIT2_DESTDIR
win32-msvc*|wince*|win32-icc {
LIBS = -l$$WEBKIT2_TARGET $$LIBS
LIBS = -L$$pathToWebKit2Output $$LIBS
POST_TARGETDEPS += $${pathToWebKit2Output}$${QMAKE_DIR_SEP}$${WEBKIT2_TARGET}.lib
} else:symbian {
LIBS = -l$${WEBKIT2_TARGET}.lib $$LIBS
QMAKE_LIBDIR += $$pathToWebKit2Output
POST_TARGETDEPS += $${pathToWebKit2Output}$${QMAKE_DIR_SEP}$${WEBKIT2_TARGET}.lib
} else {
QMAKE_LIBDIR = $$pathToWebKit2Output $$QMAKE_LIBDIR
LIBS = -l$$WEBKIT2_TARGET $$LIBS
POST_TARGETDEPS += $${pathToWebKit2Output}$${QMAKE_DIR_SEP}lib$${WEBKIT2_TARGET}.a
}
# The following line is to prevent qmake from adding webkit2 to libQtWebKit's prl dependencies.
CONFIG -= explicitlib
CONFIG -= staticlib
export(QMAKE_LIBDIR)
export(POST_TARGETDEPS)
export(CONFIG)
export(LIBS)
return(true)
}
|