blob: 71b5872e9a630db57b5df3f9789c1066fa0da49c (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
TEMPLATE = lib
TARGET = dummy
CONFIG -= debug_and_release
CONFIG(standalone_package) {
isEmpty(WEBKIT2_GENERATED_SOURCES_DIR):WEBKIT2_GENERATED_SOURCES_DIR = $$PWD/generated
isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/../WebCore/generated
} else {
isEmpty(WEBKIT2_GENERATED_SOURCES_DIR):WEBKIT2_GENERATED_SOURCES_DIR = generated
isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = ../WebCore/generated
}
WEBCORE_GENERATED_HEADERS_FOR_WEBKIT2 += \
$$WC_GENERATED_SOURCES_DIR/HTMLNames.h \
$$WC_GENERATED_SOURCES_DIR/JSCSSStyleDeclaration.h \
$$WC_GENERATED_SOURCES_DIR/JSDOMWindow.h \
$$WC_GENERATED_SOURCES_DIR/JSElement.h \
$$WC_GENERATED_SOURCES_DIR/JSHTMLElement.h \
$$WC_GENERATED_SOURCES_DIR/JSNode.h \
$$WC_GENERATED_SOURCES_DIR/JSRange.h \
QUOTE = ""
DOUBLE_ESCAPED_QUOTE = ""
ESCAPE = ""
win32-msvc*|symbian {
ESCAPE = "^"
} else:win32-g++*:isEmpty(QMAKE_SH) {
# MinGW's make will run makefile commands using sh, even if make
# was run from the Windows shell, if it finds sh in the path.
ESCAPE = "^"
} else {
QUOTE = "\'"
DOUBLE_ESCAPED_QUOTE = "\\\'"
}
SBOX_CHECK = $$(_SBOX_DIR)
!isEmpty(SBOX_CHECK) {
PYTHON = python2.6
} else {
PYTHON = python
}
SRC_ROOT_DIR = $$replace(PWD, /Source/WebKit2, "")
defineTest(addExtraCompiler) {
eval($${1}.CONFIG = target_predeps no_link)
eval($${1}.variable_out =)
eval($${1}.dependency_type = TYPE_C)
wkScript = $$eval($${1}.wkScript)
eval($${1}.depends += $$wkScript)
export($${1}.CONFIG)
export($${1}.variable_out)
export($${1}.dependency_type)
export($${1}.depends)
QMAKE_EXTRA_COMPILERS += $$1
generated_files.depends += compiler_$${1}_make_all
export(QMAKE_EXTRA_COMPILERS)
export(generated_files.depends)
return(true)
}
defineReplace(message_header_generator_output) {
FILENAME=$$basename(1)
return($$WEBKIT2_GENERATED_SOURCES_DIR/$$replace(FILENAME, ".messages.in","Messages.h"))
}
defineReplace(message_receiver_generator_output) {
FILENAME=$$basename(1)
return($$WEBKIT2_GENERATED_SOURCES_DIR/$$replace(FILENAME, ".messages.in","MessageReceiver.cpp"))
}
VPATH = \
PluginProcess \
WebProcess/ApplicationCache \
WebProcess/Authentication \
WebProcess/Cookies \
WebProcess/FullScreen \
WebProcess/Geolocation \
WebProcess/IconDatabase \
WebProcess/KeyValueStorage \
WebProcess/MediaCache \
WebProcess/Plugins \
WebProcess/ResourceCache \
WebProcess/WebCoreSupport \
WebProcess/WebPage \
WebProcess \
UIProcess \
UIProcess/Downloads \
UIProcess/Plugins \
Shared/Plugins
MESSAGE_RECEIVERS = \
AuthenticationManager.messages.in \
DownloadProxy.messages.in \
PluginControllerProxy.messages.in \
PluginProcess.messages.in \
PluginProcessProxy.messages.in \
PluginProxy.messages.in \
WebApplicationCacheManager.messages.in \
WebApplicationCacheManagerProxy.messages.in \
WebContext.messages.in \
WebCookieManager.messages.in \
WebCookieManagerProxy.messages.in \
WebDatabaseManager.messages.in \
WebDatabaseManagerProxy.messages.in \
WebGeolocationManager.messages.in \
WebGeolocationManagerProxy.messages.in \
WebIconDatabase.messages.in \
WebIconDatabaseProxy.messages.in \
WebInspectorProxy.messages.in \
WebKeyValueStorageManager.messages.in \
WebKeyValueStorageManagerProxy.messages.in \
WebMediaCacheManager.messages.in \
WebMediaCacheManagerProxy.messages.in \
WebFullScreenManager.messages.in \
WebFullScreenManagerProxy.messages.in \
WebPage/WebInspector.messages.in \
WebPage/WebPage.messages.in \
WebPageProxy.messages.in \
WebProcess.messages.in \
WebProcessConnection.messages.in \
WebProcessProxy.messages.in \
WebResourceCacheManager.messages.in \
WebResourceCacheManagerProxy.messages.in \
NPObjectMessageReceiver.messages.in
SCRIPTS = \
$$PWD/Scripts/generate-message-receiver.py \
$$PWD/Scripts/generate-messages-header.py \
$$PWD/Scripts/webkit2/__init__.py \
$$PWD/Scripts/webkit2/messages.py
message_header_generator.commands = $${PYTHON} $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-messages-header.py ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
message_header_generator.input = MESSAGE_RECEIVERS
message_header_generator.depends = $$SCRIPTS
message_header_generator.output_function = message_header_generator_output
addExtraCompiler(message_header_generator)
message_receiver_generator.commands = $${PYTHON} $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-message-receiver.py ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
message_receiver_generator.input = MESSAGE_RECEIVERS
message_receiver_generator.depends = $$SCRIPTS
message_receiver_generator.output_function = message_receiver_generator_output
addExtraCompiler(message_receiver_generator)
fwheader_generator.commands = perl $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl $${SRC_ROOT_DIR}/Source/WebKit2 ../include qt
fwheader_generator.depends = $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl
generated_files.depends += fwheader_generator
QMAKE_EXTRA_TARGETS += fwheader_generator
for(HEADER, WEBCORE_GENERATED_HEADERS_FOR_WEBKIT2) {
HEADER_NAME = $$basename(HEADER)
HEADER_PATH = $$HEADER
HEADER_TARGET = $$replace(HEADER_PATH, [^a-zA-Z0-9_], -)
HEADER_TARGET = "qtheader-$${HEADER_TARGET}"
DESTDIR = $$OUTPUT_DIR/include/"WebCore"
eval($${HEADER_TARGET}.target = $$DESTDIR/$$HEADER_NAME)
eval($${HEADER_TARGET}.depends = $$HEADER_PATH)
eval($${HEADER_TARGET}.commands = echo $${DOUBLE_ESCAPED_QUOTE}\$${LITERAL_HASH}include \\\"$$HEADER_PATH\\\"$${DOUBLE_ESCAPED_QUOTE} > $$eval($${HEADER_TARGET}.target))
QMAKE_EXTRA_TARGETS += $$HEADER_TARGET
generated_files.depends += $$eval($${HEADER_TARGET}.target)
}
QMAKE_EXTRA_TARGETS += generated_files
|