Stop 'using namespace *Names' in files generated by make_names.pl
[WebKit-https.git] / Source / WebKit / PlatformGTK.cmake
1 include(InspectorGResources.cmake)
2
3 set(WebKit_OUTPUT_NAME webkit2gtk-${WEBKITGTK_API_VERSION})
4 set(WebKit_WebProcess_OUTPUT_NAME WebKitWebProcess)
5 set(WebKit_NetworkProcess_OUTPUT_NAME WebKitNetworkProcess)
6 set(WebKit_PluginProcess_OUTPUT_NAME WebKitPluginProcess)
7
8 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR})
9 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_DIR})
10 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR})
11
12 configure_file(UIProcess/API/gtk/WebKitVersion.h.in ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h)
13 configure_file(gtk/webkit2gtk.pc.in ${WebKit2_PKGCONFIG_FILE} @ONLY)
14 configure_file(gtk/webkit2gtk-web-extension.pc.in ${WebKit2WebExtension_PKGCONFIG_FILE} @ONLY)
15
16 add_definitions(-DBUILDING_WEBKIT)
17 add_definitions(-DWEBKIT2_COMPILATION)
18 add_definitions(-DWEBKIT_DOM_USE_UNSTABLE_API)
19
20 add_definitions(-DPKGLIBEXECDIR="${LIBEXEC_INSTALL_DIR}")
21 add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
22 add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
23 add_definitions(-DLIBDIR="${LIB_INSTALL_DIR}")
24
25 if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
26     WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
27 endif ()
28
29 set(WebKit_USE_PREFIX_HEADER ON)
30
31 list(APPEND WebKit_UNIFIED_SOURCE_LIST_FILES
32     "SourcesGTK.txt"
33 )
34
35 list(APPEND WebKit_MESSAGES_IN_FILES
36     UIProcess/ViewGestureController.messages.in
37
38     WebProcess/WebPage/ViewGestureGeometryCollector.messages.in
39 )
40
41 list(APPEND WebKit_DERIVED_SOURCES
42     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.c
43     ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c
44
45     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
46     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.cpp
47 )
48
49 if (ENABLE_WAYLAND_TARGET)
50     list(APPEND WebKit_DERIVED_SOURCES
51         ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
52     )
53 endif ()
54
55 set(WebKit2GTK_INSTALLED_HEADERS
56     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
57     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitVersion.h
58     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitApplicationInfo.h
59     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAuthenticationRequest.h
60     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAutocleanups.h
61     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitAutomationSession.h
62     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitBackForwardList.h
63     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitBackForwardListItem.h
64     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitColorChooserRequest.h
65     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitCredential.h
66     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
67     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
68     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
69     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitCookieManager.h
70     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitDefines.h
71     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitDeviceInfoPermissionRequest.h
72     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitDownload.h
73     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEditingCommands.h
74     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEditorState.h
75     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitError.h
76     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFaviconDatabase.h
77     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFileChooserRequest.h
78     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFindController.h
79     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitFormSubmissionRequest.h
80     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitForwardDeclarations.h
81     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitGeolocationManager.h
82     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitGeolocationPermissionRequest.h
83     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
84     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitInstallMissingMediaPluginsPermissionRequest.h
85     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitJavascriptResult.h
86     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitMimeInfo.h
87     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNavigationAction.h
88     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNavigationPolicyDecision.h
89     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNetworkProxySettings.h
90     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNotificationPermissionRequest.h
91     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitNotification.h
92     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitOptionMenu.h
93     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitOptionMenuItem.h
94     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPermissionRequest.h
95     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPlugin.h
96     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPolicyDecision.h
97     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPrintCustomWidget.h
98     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitPrintOperation.h
99     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitResponsePolicyDecision.h
100     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitScriptDialog.h
101     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSecurityManager.h
102     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSecurityOrigin.h
103     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitSettings.h
104     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
105     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
106     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURISchemeRequest.h
107     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIUtilities.h
108     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserContent.h
109     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserContentFilterStore.h
110     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserContentManager.h
111     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitUserMediaPermissionRequest.h
112     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebContext.h
113     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebInspector.h
114     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebResource.h
115     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebView.h
116     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebViewBase.h
117     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebViewSessionState.h
118     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebsiteData.h
119     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWebsiteDataManager.h
120     ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitWindowProperties.h
121     ${WEBKIT_DIR}/UIProcess/API/gtk/webkit2.h
122 )
123
124 set(WebKit2WebExtension_INSTALLED_HEADERS
125     ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.h
126     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h
127     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitFrame.h
128     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h
129     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebEditor.h
130     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.h
131     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebExtensionAutocleanups.h
132     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebHitTestResult.h
133     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h
134     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h
135 )
136
137 set(WebKitDOM_INSTALLED_HEADERS
138     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups.h
139     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h
140     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/webkitdom.h
141     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h
142     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h
143     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h
144     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h
145     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h
146     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h
147     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h
148     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h
149     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h
150     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h
151     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h
152     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h
153     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h
154     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustomUnstable.h
155     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.h
156     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h
157     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragmentUnstable.h
158     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h
159     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h
160     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentUnstable.h
161     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h
162     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h
163     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h
164     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h
165     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindowUnstable.h
166     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h
167     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementUnstable.h
168     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h
169     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
170     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h
171     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h
172     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h
173     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h
174     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h
175     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h
176     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h
177     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h
178     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h
179     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h
180     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h
181     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h
182     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h
183     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h
184     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h
185     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h
186     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElementUnstable.h
187     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h
188     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h
189     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h
190     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h
191     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h
192     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h
193     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h
194     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h
195     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h
196     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h
197     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h
198     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h
199     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h
200     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h
201     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h
202     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h
203     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h
204     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h
205     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h
206     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h
207     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h
208     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h
209     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h
210     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h
211     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h
212     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h
213     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h
214     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h
215     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h
216     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h
217     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h
218     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h
219     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h
220     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h
221     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h
222     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h
223     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h
224     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h
225     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h
226     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h
227     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h
228     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h
229     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h
230     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h
231     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h
232     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h
233     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h
234     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h
235     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h
236     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h
237     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h
238     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h
239     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h
240     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h
241     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRangeUnstable.h
242     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h
243     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h
244     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h
245     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h
246     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h
247     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h
248     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h
249     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h
250     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h
251 )
252
253 set(WebKitDOM_GTKDOC_HEADERS
254     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h
255     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h
256     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h
257     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h
258     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h
259     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h
260     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h
261     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h
262     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h
263     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h
264     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h
265     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h
266     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCustom.h
267     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.h
268     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h
269     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h
270     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h
271     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h
272     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h
273     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h
274     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h
275     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h
276     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h
277     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
278     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h
279     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h
280     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h
281     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h
282     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h
283     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h
284     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h
285     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h
286     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h
287     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h
288     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h
289     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h
290     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h
291     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h
292     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h
293     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h
294     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h
295     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h
296     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h
297     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h
298     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h
299     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h
300     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h
301     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h
302     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h
303     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h
304     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h
305     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h
306     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h
307     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h
308     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h
309     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h
310     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h
311     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h
312     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h
313     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h
314     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h
315     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h
316     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h
317     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h
318     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h
319     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h
320     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h
321     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h
322     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h
323     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h
324     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h
325     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h
326     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h
327     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h
328     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h
329     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h
330     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h
331     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h
332     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h
333     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h
334     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h
335     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h
336     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h
337     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h
338     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h
339     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h
340     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h
341     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h
342     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h
343     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h
344     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h
345     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h
346     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h
347     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h
348     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h
349     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h
350     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h
351     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h
352     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h
353     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h
354     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h
355     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h
356     ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h
357 )
358
359 # This is necessary because of a conflict between the GTK+ API WebKitVersion.h and one generated by WebCore.
360 list(INSERT WebKit_INCLUDE_DIRECTORIES 0
361     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
362     "${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}"
363     "${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}"
364     "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
365 )
366
367 list(APPEND WebKit_INCLUDE_DIRECTORIES
368     "${DERIVED_SOURCES_JAVASCRIPCOREGTK_DIR}"
369     "${FORWARDING_HEADERS_DIR}/JavaScriptCore/"
370     "${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib"
371     "${WEBKIT_DIR}/PluginProcess/unix"
372     "${WEBKIT_DIR}/NetworkProcess/glib"
373     "${WEBKIT_DIR}/NetworkProcess/gtk"
374     "${WEBKIT_DIR}/NetworkProcess/soup"
375     "${WEBKIT_DIR}/NetworkProcess/unix"
376     "${WEBKIT_DIR}/Platform/IPC/glib"
377     "${WEBKIT_DIR}/Platform/IPC/unix"
378     "${WEBKIT_DIR}/Platform/classifier"
379     "${WEBKIT_DIR}/Shared/API/c/gtk"
380     "${WEBKIT_DIR}/Shared/API/glib"
381     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
382     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
383     "${WEBKIT_DIR}/Shared/Plugins/unix"
384     "${WEBKIT_DIR}/Shared/glib"
385     "${WEBKIT_DIR}/Shared/gtk"
386     "${WEBKIT_DIR}/Shared/linux"
387     "${WEBKIT_DIR}/Shared/soup"
388     "${WEBKIT_DIR}/Shared/unix"
389     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
390     "${WEBKIT_DIR}/UIProcess/API/C/gtk"
391     "${WEBKIT_DIR}/UIProcess/API/glib"
392     "${WEBKIT_DIR}/UIProcess/API/gtk"
393     "${WEBKIT_DIR}/UIProcess/CoordinatedGraphics"
394     "${WEBKIT_DIR}/UIProcess/Plugins/gtk"
395     "${WEBKIT_DIR}/UIProcess/geoclue"
396     "${WEBKIT_DIR}/UIProcess/glib"
397     "${WEBKIT_DIR}/UIProcess/gstreamer"
398     "${WEBKIT_DIR}/UIProcess/gtk"
399     "${WEBKIT_DIR}/UIProcess/linux"
400     "${WEBKIT_DIR}/UIProcess/soup"
401     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib"
402     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM"
403     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk"
404     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM"
405     "${WEBKIT_DIR}/WebProcess/Plugins/Netscape/unix"
406     "${WEBKIT_DIR}/WebProcess/Plugins/Netscape/x11"
407     "${WEBKIT_DIR}/WebProcess/gtk"
408     "${WEBKIT_DIR}/WebProcess/soup"
409     "${WEBKIT_DIR}/WebProcess/unix"
410     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/gtk"
411     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/soup"
412     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
413     "${WEBKIT_DIR}/WebProcess/WebPage/atk"
414     "${WEBKIT_DIR}/WebProcess/WebPage/gtk"
415 )
416
417 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
418     ${CAIRO_INCLUDE_DIRS}
419     ${ENCHANT_INCLUDE_DIRS}
420     ${GLIB_INCLUDE_DIRS}
421     ${GSTREAMER_INCLUDE_DIRS}
422     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
423     ${GTK_INCLUDE_DIRS}
424     ${GTK_UNIX_PRINT_INCLUDE_DIRS}
425     ${HARFBUZZ_INCLUDE_DIRS}
426     ${LIBSOUP_INCLUDE_DIRS}
427 )
428
429 if (USE_WPE_RENDERER)
430     list(APPEND WebKit_INCLUDE_DIRECTORIES
431         "${WEBKIT_DIR}/WebProcess/WebPage/libwpe"
432     )
433     list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
434         ${WPE_INCLUDE_DIRS}
435         ${WPEBACKEND_FDO_INCLUDE_DIRS}
436     )
437 endif ()
438
439 if (USE_LIBNOTIFY)
440 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
441     ${LIBNOTIFY_INCLUDE_DIRS}
442 )
443 endif ()
444
445 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
446 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
447
448 list(APPEND WebProcess_SOURCES
449     WebProcess/EntryPoint/unix/WebProcessMain.cpp
450 )
451
452 list(APPEND NetworkProcess_SOURCES
453     NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp
454 )
455
456 set(SharedWebKitLibraries
457     ${WebKit_LIBRARIES}
458 )
459
460 list(APPEND WebKit_LIBRARIES
461     ${GTK_UNIX_PRINT_LIBRARIES}
462 )
463
464 if (USE_WPE_RENDERER)
465     list(APPEND WebKit_LIBRARIES
466       ${WPE_LIBRARIES}
467       ${WPEBACKEND_FDO_LIBRARIES}
468     )
469 endif ()
470
471 if (LIBNOTIFY_FOUND)
472 list(APPEND WebKit_LIBRARIES
473     PRIVATE ${LIBNOTIFY_LIBRARIES}
474 )
475 endif ()
476
477 if (USE_LIBWEBRTC)
478 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
479     "${THIRDPARTY_DIR}/libwebrtc/Source/"
480     "${THIRDPARTY_DIR}/libwebrtc/Source/webrtc"
481 )
482 endif ()
483
484 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
485 set(WebKit2GTK_ENUM_GENERATION_HEADERS ${WebKit2GTK_INSTALLED_HEADERS})
486 list(REMOVE_ITEM WebKit2GTK_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h)
487 add_custom_command(
488     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
489            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
490     DEPENDS ${WebKit2GTK_ENUM_GENERATION_HEADERS}
491
492     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEnumTypes.h.template ${WebKit2GTK_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.h
493
494     COMMAND glib-mkenums --template ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitEnumTypes.cpp.template ${WebKit2GTK_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitEnumTypes.cpp
495     VERBATIM
496 )
497
498 set(WebKit2GTK_WEB_PROCESS_ENUM_GENERATION_HEADERS ${WebKit2WebExtension_INSTALLED_HEADERS})
499 list(REMOVE_ITEM WebKit2GTK_WEB_PROCESS_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.h)
500 add_custom_command(
501     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.h
502            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.cpp
503     DEPENDS ${WebKit2GTK_WEB_PROCESS_ENUM_GENERATION_HEADERS}
504
505     COMMAND glib-mkenums --template ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebProcessEnumTypes.h.template ${WebKit2GTK_WEB_PROCESS_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.h
506
507     COMMAND glib-mkenums --template ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/WebKitWebProcessEnumTypes.cpp.template ${WebKit2GTK_WEB_PROCESS_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}/WebKitWebProcessEnumTypes.cpp
508     VERBATIM
509 )
510
511 WEBKIT_BUILD_INSPECTOR_GRESOURCES(${DERIVED_SOURCES_WEBKIT2GTK_DIR})
512
513 set(WebKitResources
514     "        <file alias=\"css/gtk-theme.css\">gtk-theme.css</file>\n"
515     "        <file alias=\"images/missingImage\">missingImage.png</file>\n"
516     "        <file alias=\"images/missingImage@2x\">missingImage@2x.png</file>\n"
517     "        <file alias=\"images/panIcon\">panIcon.png</file>\n"
518     "        <file alias=\"images/textAreaResizeCorner\">textAreaResizeCorner.png</file>\n"
519     "        <file alias=\"images/textAreaResizeCorner@2x\">textAreaResizeCorner@2x.png</file>\n"
520 )
521
522 if (ENABLE_WEB_AUDIO)
523     list(APPEND WebKitResources
524         "        <file alias=\"audio/Composite\">Composite.wav</file>\n"
525     )
526 endif ()
527
528 file(WRITE ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
529     "<?xml version=1.0 encoding=UTF-8?>\n"
530     "<gresources>\n"
531     "    <gresource prefix=\"/org/webkitgtk/resources\">\n"
532     ${WebKitResources}
533     "    </gresource>\n"
534     "</gresources>\n"
535 )
536
537 add_custom_command(
538     OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c
539     DEPENDS ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
540     COMMAND glib-compile-resources --generate --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/Resources --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebCore/platform/audio/resources --sourcedir=${CMAKE_SOURCE_DIR}/Source/WebKit/Resources/gtk --target=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.c ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitResourcesGResourceBundle.xml
541     VERBATIM
542 )
543
544 if (ENABLE_WAYLAND_TARGET)
545     # Wayland protocol extension.
546     add_custom_command(
547         OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
548         DEPENDS ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml
549         COMMAND wayland-scanner server-header < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandServerProtocol.h
550         COMMAND wayland-scanner client-header < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.h
551         COMMAND wayland-scanner code < ${WEBKIT_DIR}/Shared/gtk/WebKitWaylandProtocol.xml > ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/WebKitWaylandClientProtocol.c
552     )
553 endif ()
554
555 # GTK3 PluginProcess
556 list(APPEND PluginProcess_SOURCES
557     PluginProcess/EntryPoint/unix/PluginProcessMain.cpp
558 )
559
560 # Commands for building the built-in injected bundle.
561 add_library(webkit2gtkinjectedbundle MODULE "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/WebKitInjectedBundleMain.cpp")
562 ADD_WEBKIT_PREFIX_HEADER(webkit2gtkinjectedbundle)
563 target_link_libraries(webkit2gtkinjectedbundle WebKit)
564
565 target_include_directories(webkit2gtkinjectedbundle PRIVATE
566     ${WebKit_INCLUDE_DIRECTORIES}
567     "${DERIVED_SOURCES_DIR}/InjectedBundle"
568     "${FORWARDING_HEADERS_DIR}"
569     "${FORWARDING_HEADERS_WEBKIT2GTK_DIR}"
570     "${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}"
571 )
572
573 target_include_directories(webkit2gtkinjectedbundle SYSTEM PRIVATE
574     ${WebKit_SYSTEM_INCLUDE_DIRECTORIES}
575 )
576
577 if (COMPILER_IS_GCC_OR_CLANG)
578     WEBKIT_ADD_TARGET_CXX_FLAGS(webkit2gtkinjectedbundle -Wno-unused-parameter)
579 endif ()
580
581 # Add ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} to LD_LIBRARY_PATH or DYLD_LIBRARY_PATH
582 if (APPLE)
583     set(LOADER_LIBRARY_PATH_VAR "DYLD_LIBRARY_PATH")
584     set(PREV_LOADER_LIBRARY_PATH "$ENV{DYLD_LIBRARY_PATH}")
585 else ()
586     set(LOADER_LIBRARY_PATH_VAR "LD_LIBRARY_PATH")
587     set(PREV_LOADER_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}")
588 endif ()
589
590 if (ENABLE_INTROSPECTION)
591     string(COMPARE EQUAL "${PREV_LOADER_LIBRARY_PATH}" "" ld_library_path_does_not_exist)
592     if (ld_library_path_does_not_exist)
593         set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
594             "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
595         )
596     else ()
597         set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
598             "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}:${PREV_LOADER_LIBRARY_PATH}"
599         )
600     endif ()
601
602     # Add required -L flags from ${CMAKE_SHARED_LINKER_FLAGS} for g-ir-scanner
603     string(REGEX MATCHALL "-L[^ ]*"
604         INTROSPECTION_ADDITIONAL_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
605
606     add_custom_command(
607         OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
608         DEPENDS WebKit
609         DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
610         COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
611             ${LOADER_LIBRARY_PATH_VAR}="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
612             ${INTROSPECTION_SCANNER}
613             --quiet
614             --warn-all
615             --symbol-prefix=webkit
616             --identifier-prefix=WebKit
617             --namespace=WebKit2
618             --nsversion=${WEBKITGTK_API_VERSION}
619             --include=GObject-2.0
620             --include=Gtk-3.0
621             --include=Soup-2.4
622             --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
623             --library=webkit2gtk-${WEBKITGTK_API_VERSION}
624             --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
625             -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
626             ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
627             --no-libtool
628             --pkg=gobject-2.0
629             --pkg=gtk+-3.0
630             --pkg=libsoup-2.4
631             --pkg-export=webkit2gtk-${WEBKITGTK_API_VERSION}
632             --output=${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
633             --c-include="webkit2/webkit2.h"
634             -DBUILDING_WEBKIT
635             -DWEBKIT2_COMPILATION
636             -I${CMAKE_SOURCE_DIR}/Source
637             -I${WEBKIT_DIR}
638             -I${DERIVED_SOURCES_DIR}
639             -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
640             -I${DERIVED_SOURCES_JAVASCRIPCOREGTK_DIR}
641             -I${FORWARDING_HEADERS_DIR}
642             -I${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib
643             -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
644             ${WebKit2GTK_INSTALLED_HEADERS}
645             ${WEBKIT_DIR}/Shared/API/glib/*.cpp
646             ${WEBKIT_DIR}/UIProcess/API/glib/*.cpp
647             ${WEBKIT_DIR}/UIProcess/API/gtk/*.cpp
648     )
649
650     add_custom_command(
651         OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
652         DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
653         DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
654         COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations
655             LDFLAGS="${INTROSPECTION_ADDITIONAL_LDFLAGS}"
656             ${LOADER_LIBRARY_PATH_VAR}="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
657             ${INTROSPECTION_SCANNER}
658             --quiet
659             --warn-all
660             --symbol-prefix=webkit
661             --identifier-prefix=WebKit
662             --namespace=WebKit2WebExtension
663             --nsversion=${WEBKITGTK_API_VERSION}
664             --include=GObject-2.0
665             --include=Gtk-3.0
666             --include=Soup-2.4
667             --include-uninstalled=${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
668             --library=webkit2gtk-${WEBKITGTK_API_VERSION}
669             --library=javascriptcoregtk-${WEBKITGTK_API_VERSION}
670             ${INTROSPECTION_ADDITIONAL_LIBRARIES}
671             -L${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
672             ${INTROSPECTION_ADDITIONAL_LINKER_FLAGS}
673             --no-libtool
674             --pkg=gobject-2.0
675             --pkg=gtk+-3.0
676             --pkg=libsoup-2.4
677             --pkg-export=webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}
678             --output=${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
679             --c-include="webkit2/webkit-web-extension.h"
680             -DBUILDING_WEBKIT
681             -DWEBKIT2_COMPILATION
682             -I${CMAKE_SOURCE_DIR}/Source
683             -I${WEBKIT_DIR}
684             -I${DERIVED_SOURCES_DIR}
685             -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}
686             -I${DERIVED_SOURCES_JAVASCRIPCOREGTK_DIR}
687             -I${FORWARDING_HEADERS_DIR}
688             -I${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib
689             -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}
690             -I${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}
691             -I${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk
692             ${WebKitDOM_INSTALLED_HEADERS}
693             ${WebKit2WebExtension_INSTALLED_HEADERS}
694             ${WEBKIT_DIR}/Shared/API/glib/WebKitContextMenu.cpp
695             ${WEBKIT_DIR}/Shared/API/glib/WebKitContextMenuItem.cpp
696             ${WEBKIT_DIR}/Shared/API/glib/WebKitHitTestResult.cpp
697             ${WEBKIT_DIR}/Shared/API/glib/WebKitURIRequest.cpp
698             ${WEBKIT_DIR}/Shared/API/glib/WebKitURIResponse.cpp
699             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenu.h
700             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuActions.h
701             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitContextMenuItem.h
702             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitHitTestResult.h
703             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
704             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
705             ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/*.cpp
706             ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM/*.cpp
707     )
708
709     add_custom_command(
710         OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
711         DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
712         COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
713     )
714
715     add_custom_command(
716         OUTPUT ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
717         DEPENDS ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
718         COMMAND ${INTROSPECTION_COMPILER} --includedir=${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
719     )
720
721     ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib)
722     ADD_TYPELIB(${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib)
723 endif ()
724
725 install(TARGETS webkit2gtkinjectedbundle
726         DESTINATION "${LIB_INSTALL_DIR}/webkit2gtk-${WEBKITGTK_API_VERSION}/injected-bundle"
727 )
728 install(FILES "${CMAKE_BINARY_DIR}/Source/WebKit/webkit2gtk-${WEBKITGTK_API_VERSION}.pc"
729               "${CMAKE_BINARY_DIR}/Source/WebKit/webkit2gtk-web-extension-${WEBKITGTK_API_VERSION}.pc"
730         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
731 )
732 install(FILES ${WebKit2GTK_INSTALLED_HEADERS}
733               ${WebKit2WebExtension_INSTALLED_HEADERS}
734         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkit2"
735 )
736 install(FILES ${WebKitDOM_INSTALLED_HEADERS}
737         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/webkitdom"
738 )
739
740 if (ENABLE_INTROSPECTION)
741     install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
742                   ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.gir
743             DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
744     )
745     install(FILES ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.typelib
746                   ${CMAKE_BINARY_DIR}/WebKit2WebExtension-${WEBKITGTK_API_VERSION}.typelib
747             DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
748     )
749 endif ()
750
751 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkit2gtk.cfg
752     "[webkit2gtk-${WEBKITGTK_API_VERSION}]\n"
753     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
754     "decorator=WEBKIT_API|WEBKIT_DEPRECATED|WEBKIT_DEPRECATED_FOR\\(.+\\)\n"
755     "deprecation_guard=WEBKIT_DISABLE_DEPRECATED\n"
756     "namespace=webkit\n"
757     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
758     "       -I${WEBKIT_DIR}/Shared/API/glib\n"
759     "       -I${WEBKIT_DIR}/UIProcess/API/glib\n"
760     "       -I${WEBKIT_DIR}/UIProcess/API/gtk\n"
761     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
762     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
763     "doc_dir=${WEBKIT_DIR}/UIProcess/API/gtk/docs\n"
764     "source_dirs=${WEBKIT_DIR}/Shared/API/glib\n"
765     "            ${WEBKIT_DIR}/UIProcess/API/glib\n"
766     "            ${WEBKIT_DIR}/UIProcess/API/gtk\n"
767     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib\n"
768     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk\n"
769     "            ${DERIVED_SOURCES_WEBKIT2GTK_API_DIR}\n"
770     "headers=${WebKit2GTK_ENUM_GENERATION_HEADERS} ${WebKit2WebExtension_INSTALLED_HEADERS}\n"
771     "main_sgml_file=webkit2gtk-docs.sgml\n"
772 )
773
774 file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkitdom.cfg
775     "[webkitdomgtk-${WEBKITGTK_API_VERSION}]\n"
776     "pkgconfig_file=${WebKit2_PKGCONFIG_FILE}\n"
777     "decorator=WEBKIT_API|WEBKIT_DEPRECATED|WEBKIT_DEPRECATED_FOR\\(.+\\)\n"
778     "deprecation_guard=WEBKIT_DISABLE_DEPRECATED\n"
779     "namespace=webkit_dom\n"
780     "cflags=-I${CMAKE_SOURCE_DIR}/Source\n"
781     "       -I${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
782     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
783     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
784     "doc_dir=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/docs\n"
785     "source_dirs=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM\n"
786     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
787     "headers=${WebKitDOM_GTKDOC_HEADERS}\n"
788     "main_sgml_file=webkitdomgtk-docs.sgml\n"
789 )
790
791 add_custom_target(WebKit-forwarding-headers
792     COMMAND ${PERL_EXECUTABLE} ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl --include-path ${WEBKIT_DIR} --output ${FORWARDING_HEADERS_DIR} --platform gtk --platform soup
793 )
794
795 # These symbolic link allows includes like #include <webkit2/WebkitWebView.h> which simulates installed headers.
796 add_custom_command(
797     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
798     DEPENDS ${WEBKIT_DIR}/UIProcess/API/gtk
799     COMMAND ln -n -s -f ${WEBKIT_DIR}/UIProcess/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
800 )
801 add_custom_command(
802     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
803     DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk
804     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
805 )
806 add_custom_command(
807     OUTPUT ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
808     DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM
809     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
810 )
811 add_custom_target(WebKit-fake-api-headers
812     DEPENDS ${FORWARDING_HEADERS_WEBKIT2GTK_DIR}/webkit2
813             ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkit2
814             ${FORWARDING_HEADERS_WEBKIT2GTK_EXTENSION_DIR}/webkitdom
815 )
816
817 set(WEBKIT_EXTRA_DEPENDENCIES
818      WebKit-fake-api-headers
819      WebKit-forwarding-headers
820 )