119e50d6477890fc17d35237a582231aca024cfe
[WebKit-https.git] / Source / WebKit2 / CMakeLists.txt
1 SET(WebKit2_INCLUDE_DIRECTORIES
2     "${WEBKIT2_DIR}"
3     "${WEBKIT2_DIR}/Platform"
4     "${WEBKIT2_DIR}/Platform/CoreIPC"
5     "${WEBKIT2_DIR}/PluginProcess"
6     "${WEBKIT2_DIR}/Shared"
7     "${WEBKIT2_DIR}/Shared/API"
8     "${WEBKIT2_DIR}/Shared/API/c"
9     "${WEBKIT2_DIR}/Shared/CoreIPCSupport"
10     "${WEBKIT2_DIR}/Shared/Plugins"
11     "${WEBKIT2_DIR}/Shared/Plugins/Netscape"
12     "${WEBKIT2_DIR}/Shared/Plugins/Netscape/x11"
13     "${WEBKIT2_DIR}/UIProcess"
14     "${WEBKIT2_DIR}/UIProcess/API"
15     "${WEBKIT2_DIR}/UIProcess/API/C"
16     "${WEBKIT2_DIR}/UIProcess/API/cpp"
17     "${WEBKIT2_DIR}/UIProcess/Authentication"
18     "${WEBKIT2_DIR}/UIProcess/Downloads"
19     "${WEBKIT2_DIR}/UIProcess/Launcher"
20     "${WEBKIT2_DIR}/UIProcess/Plugins"
21     "${WEBKIT2_DIR}/WebProcess"
22     "${WEBKIT2_DIR}/WebProcess/ApplicationCache"
23     "${WEBKIT2_DIR}/WebProcess/Authentication"
24     "${WEBKIT2_DIR}/WebProcess/Cookies"
25     "${WEBKIT2_DIR}/WebProcess/Downloads"
26     "${WEBKIT2_DIR}/WebProcess/FullScreen"
27     "${WEBKIT2_DIR}/WebProcess/Geolocation"
28     "${WEBKIT2_DIR}/WebProcess/IconDatabase"
29     "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
30     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API"
31     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
32     "${WEBKIT2_DIR}/WebProcess/InjectedBundle/DOM"
33     "${WEBKIT2_DIR}/WebProcess/KeyValueStorage"
34     "${WEBKIT2_DIR}/WebProcess/Launching"
35     "${WEBKIT2_DIR}/WebProcess/MediaCache"
36     "${WEBKIT2_DIR}/WebProcess/ResourceCache"
37     "${WEBKIT2_DIR}/WebProcess/Plugins"
38     "${WEBKIT2_DIR}/WebProcess/Plugins/Netscape"
39     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport"
40     "${WEBKIT2_DIR}/WebProcess/WebPage"
41     "${WEBCORE_DIR}"
42     "${WEBCORE_DIR}/accessibility"
43     "${WEBCORE_DIR}/bindings/js"
44     "${WEBCORE_DIR}/bindings"
45     "${WEBCORE_DIR}/bridge"
46     "${WEBCORE_DIR}/bridge/jsc"
47     "${WEBCORE_DIR}/css"
48     "${WEBCORE_DIR}/dom"
49     "${WEBCORE_DIR}/editing"
50     "${WEBCORE_DIR}/history"
51     "${WEBCORE_DIR}/html"
52     "${WEBCORE_DIR}/loader"
53     "${WEBCORE_DIR}/loader/icon"
54     "${WEBCORE_DIR}/loader/cache"
55     "${WEBCORE_DIR}/page"
56     "${WEBCORE_DIR}/page/animation"
57     "${WEBCORE_DIR}/platform"
58     "${WEBCORE_DIR}/platform/animation"
59     "${WEBCORE_DIR}/platform/graphics"
60     "${WEBCORE_DIR}/platform/graphics/transforms"
61     "${WEBCORE_DIR}/platform/network"
62     "${WEBCORE_DIR}/platform/sql"
63     "${WEBCORE_DIR}/platform/text"
64     "${WEBCORE_DIR}/plugins"
65     "${WEBCORE_DIR}/rendering"
66     "${WEBCORE_DIR}/rendering/style"
67     "${WEBCORE_DIR}/storage"
68     "${WEBCORE_DIR}/svg"
69     "${WEBCORE_DIR}/svg/properties"
70     "${JAVASCRIPTCORE_DIR}"
71     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
72     "${JAVASCRIPTCORE_DIR}/API"
73     "${JAVASCRIPTCORE_DIR}/assembler"
74     "${JAVASCRIPTCORE_DIR}/bytecode"
75     "${JAVASCRIPTCORE_DIR}/bytecompiler"
76     "${JAVASCRIPTCORE_DIR}/dfg"
77     "${JAVASCRIPTCORE_DIR}/collector/handles"
78     "${JAVASCRIPTCORE_DIR}/heap"
79     "${JAVASCRIPTCORE_DIR}/interpreter"
80     "${JAVASCRIPTCORE_DIR}/jit"
81     "${JAVASCRIPTCORE_DIR}/parser"
82     "${JAVASCRIPTCORE_DIR}/profiler"
83     "${JAVASCRIPTCORE_DIR}/runtime"
84     "${JAVASCRIPTCORE_DIR}/wtf"
85     "${DERIVED_SOURCES_DIR}"
86     "${DERIVED_SOURCES_WEBCORE_DIR}"
87     "${DERIVED_SOURCES_WEBKIT2_DIR}"
88     "${DERIVED_SOURCES_WEBKIT2_DIR}/include"
89     "${CMAKE_BINARY_DIR}"
90     "${CMAKE_SOURCE_DIR}/Source"
91 )
92
93 SET(WebKit2_SOURCES
94     Platform/CoreIPC/ArgumentCoders.cpp
95     Platform/CoreIPC/ArgumentDecoder.cpp
96     Platform/CoreIPC/ArgumentEncoder.cpp
97     Platform/CoreIPC/Attachment.cpp
98     Platform/CoreIPC/BinarySemaphore.cpp
99     Platform/CoreIPC/Connection.cpp
100     Platform/CoreIPC/DataReference.cpp
101
102     Platform/Logging.cpp
103     Platform/Module.cpp
104     Platform/RunLoop.cpp
105     Platform/WorkQueue.cpp
106
107     PluginProcess/PluginControllerProxy.cpp
108     PluginProcess/PluginProcess.cpp
109     PluginProcess/WebProcessConnection.cpp
110
111     Shared/API/c/WKArray.cpp
112     Shared/API/c/WKCertificateInfo.cpp
113     Shared/API/c/WKContextMenuItem.cpp
114     Shared/API/c/WKData.cpp
115     Shared/API/c/WKDictionary.cpp
116     Shared/API/c/WKError.cpp
117     Shared/API/c/WKGraphicsContext.cpp
118     Shared/API/c/WKImage.cpp
119     Shared/API/c/WKMutableArray.cpp
120     Shared/API/c/WKMutableDictionary.cpp
121     Shared/API/c/WKNumber.cpp
122     Shared/API/c/WKSecurityOrigin.cpp
123     Shared/API/c/WKSerializedScriptValue.cpp
124     Shared/API/c/WKString.cpp
125     Shared/API/c/WKType.cpp
126     Shared/API/c/WKURL.cpp
127     Shared/API/c/WKURLRequest.cpp
128     Shared/API/c/WKURLResponse.cpp
129     Shared/API/c/WKUserContentURLPattern.cpp
130
131     Shared/APIClientTraits.cpp
132     Shared/APIObject.cpp
133     Shared/ChildProcess.cpp
134     Shared/ImmutableArray.cpp
135     Shared/ImmutableDictionary.cpp
136     Shared/MutableArray.cpp
137     Shared/MutableDictionary.cpp
138     Shared/OriginAndDatabases.cpp
139     Shared/PlatformPopupMenuData.cpp
140     Shared/PrintInfo.cpp
141     Shared/SecurityOriginData.cpp
142     Shared/SessionState.cpp
143     Shared/ShareableBitmap.cpp
144     Shared/StatisticsData.cpp
145     Shared/UpdateInfo.cpp
146     Shared/VisitedLinkTable.cpp
147     Shared/WebBackForwardListItem.cpp
148     Shared/WebContextMenuItem.cpp
149     Shared/WebContextMenuItemData.cpp
150     Shared/WebCoreArgumentCoders.cpp
151     Shared/WebError.cpp
152     Shared/WebEvent.cpp
153     Shared/WebEventConversion.cpp
154     Shared/WebGeolocationPosition.cpp
155     Shared/WebGraphicsContext.cpp
156     Shared/WebHitTestResult.cpp
157     Shared/WebImage.cpp
158     Shared/WebKeyboardEvent.cpp
159     Shared/WebMouseEvent.cpp
160     Shared/WebOpenPanelParameters.cpp
161     Shared/WebPageCreationParameters.cpp
162     Shared/WebPageGroupData.cpp
163     Shared/WebPlatformTouchPoint.cpp
164     Shared/WebPopupItem.cpp
165     Shared/WebPreferencesStore.cpp
166     Shared/WebProcessCreationParameters.cpp
167     Shared/WebTouchEvent.cpp
168     Shared/WebURLRequest.cpp
169     Shared/WebURLResponse.cpp
170     Shared/WebWheelEvent.cpp
171
172     Shared/Plugins/NPIdentifierData.cpp
173     Shared/Plugins/NPObjectMessageReceiver.cpp
174     Shared/Plugins/NPObjectProxy.cpp
175     Shared/Plugins/NPRemoteObjectMap.cpp
176     Shared/Plugins/NPVariantData.cpp
177     Shared/Plugins/PluginProcessCreationParameters.cpp
178
179     Shared/Plugins/Netscape/NetscapePluginModule.cpp
180     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
181
182     UIProcess/API/C/WKApplicationCacheManager.cpp
183     UIProcess/API/C/WKAuthenticationChallenge.cpp
184     UIProcess/API/C/WKAuthenticationDecisionListener.cpp
185     UIProcess/API/C/WKBackForwardList.cpp
186     UIProcess/API/C/WKBackForwardListItem.cpp
187     UIProcess/API/C/WKContext.cpp
188     UIProcess/API/C/WKCookieManager.cpp
189     UIProcess/API/C/WKCredential.cpp
190     UIProcess/API/C/WKDatabaseManager.cpp
191     UIProcess/API/C/WKDownload.cpp
192     UIProcess/API/C/WKFormSubmissionListener.cpp
193     UIProcess/API/C/WKFrame.cpp
194     UIProcess/API/C/WKFramePolicyListener.cpp
195     UIProcess/API/C/WKGeolocationManager.cpp
196     UIProcess/API/C/WKGeolocationPermissionRequest.cpp
197     UIProcess/API/C/WKGeolocationPosition.cpp
198     UIProcess/API/C/WKGrammarDetail.cpp
199     UIProcess/API/C/WKHitTestResult.cpp
200     UIProcess/API/C/WKIconDatabase.cpp
201     UIProcess/API/C/WKInspector.cpp
202     UIProcess/API/C/WKKeyValueStorageManager.cpp
203     UIProcess/API/C/WKMediaCacheManager.cpp
204     UIProcess/API/C/WKNavigationData.cpp
205     UIProcess/API/C/WKOpenPanelParameters.cpp
206     UIProcess/API/C/WKOpenPanelResultListener.cpp
207     UIProcess/API/C/WKPage.cpp
208     UIProcess/API/C/WKPageGroup.cpp
209     UIProcess/API/C/WKPluginSiteDataManager.cpp
210     UIProcess/API/C/WKPreferences.cpp
211     UIProcess/API/C/WKProtectionSpace.cpp
212     UIProcess/API/C/WKResourceCacheManager.cpp
213     UIProcess/API/C/WKTextChecker.cpp
214
215     UIProcess/BackingStore.cpp
216     UIProcess/DrawingAreaProxy.cpp
217     UIProcess/DrawingAreaProxyImpl.cpp
218     UIProcess/FindIndicator.cpp
219     UIProcess/GeolocationPermissionRequestManagerProxy.cpp
220     UIProcess/GeolocationPermissionRequestProxy.cpp
221     UIProcess/ResponsivenessTimer.cpp
222     UIProcess/VisitedLinkProvider.cpp
223     UIProcess/WebApplicationCacheManagerProxy.cpp
224     UIProcess/WebBackForwardList.cpp
225     UIProcess/WebContext.cpp
226     UIProcess/WebContextInjectedBundleClient.cpp
227     UIProcess/WebContextMenuProxy.cpp
228     UIProcess/WebCookieManagerProxy.cpp
229     UIProcess/WebCookieManagerProxyClient.cpp
230     UIProcess/WebDatabaseManagerProxy.cpp
231     UIProcess/WebDatabaseManagerProxyClient.cpp
232     UIProcess/WebDownloadClient.cpp
233     UIProcess/WebEditCommandProxy.cpp
234     UIProcess/WebFindClient.cpp
235     UIProcess/WebFormClient.cpp
236     UIProcess/WebFormSubmissionListenerProxy.cpp
237     UIProcess/WebFrameListenerProxy.cpp
238     UIProcess/WebFramePolicyListenerProxy.cpp
239     UIProcess/WebFrameProxy.cpp
240     UIProcess/WebFullScreenManagerProxy.cpp
241     UIProcess/WebGeolocationManagerProxy.cpp
242     UIProcess/WebGeolocationProvider.cpp
243     UIProcess/WebGrammarDetail.cpp
244     UIProcess/WebHistoryClient.cpp
245     UIProcess/WebIconDatabase.cpp
246     UIProcess/WebIconDatabaseClient.cpp
247     UIProcess/WebInspectorProxy.cpp
248     UIProcess/WebKeyValueStorageManagerProxy.cpp
249     UIProcess/WebLoaderClient.cpp
250     UIProcess/WebMediaCacheManagerProxy.cpp
251     UIProcess/WebNavigationData.cpp
252     UIProcess/WebOpenPanelResultListenerProxy.cpp
253     UIProcess/WebPageContextMenuClient.cpp
254     UIProcess/WebPageGroup.cpp
255     UIProcess/WebPageProxy.cpp
256     UIProcess/WebPolicyClient.cpp
257     UIProcess/WebPreferences.cpp
258     UIProcess/WebProcessProxy.cpp
259     UIProcess/WebResourceCacheManagerProxy.cpp
260     UIProcess/WebResourceLoadClient.cpp
261     UIProcess/WebTextChecker.cpp
262     UIProcess/WebTextCheckerClient.cpp
263     UIProcess/WebUIClient.cpp
264
265     UIProcess/Authentication/AuthenticationChallengeProxy.cpp
266     UIProcess/Authentication/AuthenticationDecisionListener.cpp
267     UIProcess/Authentication/WebCredential.cpp
268     UIProcess/Authentication/WebProtectionSpace.cpp
269
270     UIProcess/Downloads/DownloadProxy.cpp
271
272     UIProcess/Launcher/ProcessLauncher.cpp
273     UIProcess/Launcher/ThreadLauncher.cpp
274
275     UIProcess/Plugins/PluginInfoStore.cpp
276     UIProcess/Plugins/PluginProcessManager.cpp
277     UIProcess/Plugins/PluginProcessProxy.cpp
278     UIProcess/Plugins/WebPluginSiteDataManager.cpp
279
280     WebProcess/WebKitMain.cpp
281     WebProcess/WebProcess.cpp
282
283     WebProcess/ApplicationCache/WebApplicationCacheManager.cpp
284
285     WebProcess/Authentication/AuthenticationManager.cpp
286
287     WebProcess/Cookies/WebCookieManager.cpp
288
289     WebProcess/Downloads/Download.cpp
290     WebProcess/Downloads/DownloadAuthenticationClient.cpp
291     WebProcess/Downloads/DownloadManager.cpp
292
293     WebProcess/FullScreen/WebFullScreenManager.cpp
294
295     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
296     WebProcess/Geolocation/WebGeolocationManager.cpp
297
298     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp
299
300     WebProcess/InjectedBundle/InjectedBundle.cpp
301     WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp
302     WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
303     WebProcess/InjectedBundle/InjectedBundleClient.cpp
304     WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
305     WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
306     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
307     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp
308     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
309     WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp
310     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
311     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
312     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp
313     WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
314     WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
315
316     WebProcess/InjectedBundle/API/c/WKBundle.cpp
317     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp
318     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp
319     WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
320     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
321     WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
322     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp
323     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
324     WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
325     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp
326     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
327     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp
328     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp
329
330     WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
331     WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
332
333     WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp
334
335     WebProcess/MediaCache/WebMediaCacheManager.cpp
336
337     WebProcess/Plugins/Plugin.cpp
338     WebProcess/Plugins/PluginProcessConnection.cpp
339     WebProcess/Plugins/PluginProcessConnectionManager.cpp
340     WebProcess/Plugins/PluginProxy.cpp
341     WebProcess/Plugins/PluginView.cpp
342
343     WebProcess/Plugins/Netscape/JSNPMethod.cpp
344     WebProcess/Plugins/Netscape/JSNPObject.cpp
345     WebProcess/Plugins/Netscape/NPJSObject.cpp
346     WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp
347     WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
348     WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
349     WebProcess/Plugins/Netscape/NetscapePlugin.cpp
350     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
351     WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
352
353     WebProcess/ResourceCache/WebResourceCacheManager.cpp
354
355     WebProcess/WebCoreSupport/WebChromeClient.cpp
356     WebProcess/WebCoreSupport/WebContextMenuClient.cpp
357     WebProcess/WebCoreSupport/WebDatabaseManager.cpp
358     WebProcess/WebCoreSupport/WebDragClient.cpp
359     WebProcess/WebCoreSupport/WebEditorClient.cpp
360     WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
361     WebProcess/WebCoreSupport/WebGeolocationClient.cpp
362     WebProcess/WebCoreSupport/WebInspectorClient.cpp
363     WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp
364     WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
365     WebProcess/WebCoreSupport/WebPopupMenu.cpp
366     WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp
367
368     WebProcess/WebPage/DecoderAdapter.cpp
369     WebProcess/WebPage/DrawingArea.cpp
370     WebProcess/WebPage/DrawingAreaImpl.cpp
371     WebProcess/WebPage/EncoderAdapter.cpp
372     WebProcess/WebPage/FindController.cpp
373     WebProcess/WebPage/LayerTreeHost.cpp
374     WebProcess/WebPage/PageOverlay.cpp
375     WebProcess/WebPage/WebBackForwardListProxy.cpp
376     WebProcess/WebPage/WebContextMenu.cpp
377     WebProcess/WebPage/WebUndoStep.cpp
378     WebProcess/WebPage/WebFrame.cpp
379     WebProcess/WebPage/WebInspector.cpp
380     WebProcess/WebPage/WebOpenPanelResultListener.cpp
381     WebProcess/WebPage/WebPage.cpp
382     WebProcess/WebPage/WebPageGroupProxy.cpp
383 )
384
385 SET(WebKit2_MESSAGES_IN_FILES
386     UIProcess/WebMediaCacheManagerProxy.messages.in
387     UIProcess/WebCookieManagerProxy.messages.in
388     UIProcess/Plugins/PluginProcessProxy.messages.in
389     UIProcess/WebInspectorProxy.messages.in
390     UIProcess/WebFullScreenManagerProxy.messages.in
391     UIProcess/WebDatabaseManagerProxy.messages.in
392     UIProcess/WebPageProxy.messages.in
393     UIProcess/WebIconDatabase.messages.in
394     UIProcess/Downloads/DownloadProxy.messages.in
395     UIProcess/WebContext.messages.in
396     UIProcess/WebGeolocationManagerProxy.messages.in
397     UIProcess/DrawingAreaProxy.messages.in
398     UIProcess/WebKeyValueStorageManagerProxy.messages.in
399     UIProcess/WebResourceCacheManagerProxy.messages.in
400     UIProcess/WebProcessProxy.messages.in
401     UIProcess/WebApplicationCacheManagerProxy.messages.in
402     PluginProcess/WebProcessConnection.messages.in
403     PluginProcess/PluginControllerProxy.messages.in
404     PluginProcess/PluginProcess.messages.in
405     Shared/Plugins/NPObjectMessageReceiver.messages.in
406     WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in
407     WebProcess/MediaCache/WebMediaCacheManager.messages.in
408     WebProcess/Plugins/PluginProxy.messages.in
409     WebProcess/WebProcess.messages.in
410     WebProcess/Geolocation/WebGeolocationManager.messages.in
411     WebProcess/WebCoreSupport/WebDatabaseManager.messages.in
412     WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
413     WebProcess/Authentication/AuthenticationManager.messages.in
414     WebProcess/ResourceCache/WebResourceCacheManager.messages.in
415     WebProcess/FullScreen/WebFullScreenManager.messages.in
416     WebProcess/Cookies/WebCookieManager.messages.in
417     WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in
418     WebProcess/WebPage/WebPage.messages.in
419     WebProcess/WebPage/WebInspector.messages.in
420     WebProcess/WebPage/DrawingArea.messages.in
421 )
422
423 # Create JavaScript C++ code given an IDL input
424 FOREACH (_file ${WebKit2_MESSAGES_IN_FILES})
425     GET_FILENAME_COMPONENT (_name ${_file} NAME_WE)
426     ADD_CUSTOM_COMMAND(
427         OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}Messages.h
428         MAIN_DEPENDENCY ${_file}
429         COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-message-receiver.py ${_file} > ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp
430         COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-messages-header.py ${_file} > ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}Messages.h
431         WORKING_DIRECTORY ${WEBKIT2_DIR}
432         VERBATIM)
433
434     LIST(APPEND WebKit2_SOURCES ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp)
435 ENDFOREACH ()
436
437 SET(WebKit2_LIBRARIES
438     ${WebCore_LIBRARY_NAME}
439 )
440
441 SET(WebProcess_NAME ../Programs/WebProcess)
442 SET(WebProcess_SOURCES "")
443
444 SET(WebProcess_LIBRARIES
445     ${JavaScriptCore_LIBRARY_NAME}
446     ${WebCore_LIBRARY_NAME}
447     ${WebKit2_LIBRARY_NAME}
448 )
449
450 SET(ForwardingHeaders_NAME )
451 SET(ForwardingNetworkHeaders_NAME )
452 INCLUDE_IF_EXISTS(${WEBKIT2_DIR}/Platform${PORT}.cmake)
453
454 ADD_DEFINITIONS(-DBUILDING_WEBKIT)
455 ADD_DEFINITIONS(-DWTF_USE_JSC=1)
456 INCLUDE_DIRECTORIES(${WebKit2_INCLUDE_DIRECTORIES})
457 ADD_LIBRARY(${WebKit2_LIBRARY_NAME} ${WebKit2_LIBRARY_TYPE} ${WebKit2_SOURCES})
458
459 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${WebCore_LIBRARY_NAME})
460 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${ForwardingHeaders_NAME})
461 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${ForwardingNetworkHeaders_NAME})
462 TARGET_LINK_LIBRARIES(${WebKit2_LIBRARY_NAME} ${WebKit2_LIBRARIES})
463
464 ADD_EXECUTABLE(${WebProcess_NAME} ${WebProcess_SOURCES})
465 TARGET_LINK_LIBRARIES(${WebProcess_NAME} ${WebProcess_LIBRARIES})
466
467 SET_TARGET_PROPERTIES(${WebKit2_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
468 IF (WebKit2_LINK_FLAGS)
469     ADD_TARGET_PROPERTIES(${WebKit2_LIBRARY_NAME} LINK_FLAGS "${WebKit2_LINK_FLAGS}")
470     ADD_TARGET_PROPERTIES(${WebProcess_NAME} LINK_FLAGS "${WebKit2_LINK_FLAGS}")
471 ENDIF ()
472
473 INSTALL(TARGETS ${WebKit2_LIBRARY_NAME} DESTINATION lib)