[EFL][WK2] Add an option to build WebKit2.
[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/TiledDrawingAreaProxy.cpp
223     UIProcess/VisitedLinkProvider.cpp
224     UIProcess/WebApplicationCacheManagerProxy.cpp
225     UIProcess/WebBackForwardList.cpp
226     UIProcess/WebContext.cpp
227     UIProcess/WebContextInjectedBundleClient.cpp
228     UIProcess/WebContextMenuProxy.cpp
229     UIProcess/WebCookieManagerProxy.cpp
230     UIProcess/WebCookieManagerProxyClient.cpp
231     UIProcess/WebDatabaseManagerProxy.cpp
232     UIProcess/WebDatabaseManagerProxyClient.cpp
233     UIProcess/WebDownloadClient.cpp
234     UIProcess/WebEditCommandProxy.cpp
235     UIProcess/WebFindClient.cpp
236     UIProcess/WebFormClient.cpp
237     UIProcess/WebFormSubmissionListenerProxy.cpp
238     UIProcess/WebFrameListenerProxy.cpp
239     UIProcess/WebFramePolicyListenerProxy.cpp
240     UIProcess/WebFrameProxy.cpp
241     UIProcess/WebFullScreenManagerProxy.cpp
242     UIProcess/WebGeolocationManagerProxy.cpp
243     UIProcess/WebGeolocationProvider.cpp
244     UIProcess/WebGrammarDetail.cpp
245     UIProcess/WebHistoryClient.cpp
246     UIProcess/WebIconDatabase.cpp
247     UIProcess/WebIconDatabaseClient.cpp
248     UIProcess/WebInspectorProxy.cpp
249     UIProcess/WebKeyValueStorageManagerProxy.cpp
250     UIProcess/WebLoaderClient.cpp
251     UIProcess/WebMediaCacheManagerProxy.cpp
252     UIProcess/WebNavigationData.cpp
253     UIProcess/WebOpenPanelResultListenerProxy.cpp
254     UIProcess/WebPageContextMenuClient.cpp
255     UIProcess/WebPageGroup.cpp
256     UIProcess/WebPageProxy.cpp
257     UIProcess/WebPolicyClient.cpp
258     UIProcess/WebPreferences.cpp
259     UIProcess/WebProcessProxy.cpp
260     UIProcess/WebResourceCacheManagerProxy.cpp
261     UIProcess/WebResourceLoadClient.cpp
262     UIProcess/WebTextChecker.cpp
263     UIProcess/WebTextCheckerClient.cpp
264     UIProcess/WebUIClient.cpp
265
266     UIProcess/Authentication/AuthenticationChallengeProxy.cpp
267     UIProcess/Authentication/AuthenticationDecisionListener.cpp
268     UIProcess/Authentication/WebCredential.cpp
269     UIProcess/Authentication/WebProtectionSpace.cpp
270
271     UIProcess/Downloads/DownloadProxy.cpp
272
273     UIProcess/Launcher/ProcessLauncher.cpp
274     UIProcess/Launcher/ThreadLauncher.cpp
275
276     UIProcess/Plugins/PluginInfoStore.cpp
277     UIProcess/Plugins/PluginProcessManager.cpp
278     UIProcess/Plugins/PluginProcessProxy.cpp
279     UIProcess/Plugins/WebPluginSiteDataManager.cpp
280
281     WebProcess/WebKitMain.cpp
282     WebProcess/WebProcess.cpp
283
284     WebProcess/ApplicationCache/WebApplicationCacheManager.cpp
285
286     WebProcess/Authentication/AuthenticationManager.cpp
287
288     WebProcess/Cookies/WebCookieManager.cpp
289
290     WebProcess/Downloads/Download.cpp
291     WebProcess/Downloads/DownloadAuthenticationClient.cpp
292     WebProcess/Downloads/DownloadManager.cpp
293
294     WebProcess/FullScreen/WebFullScreenManager.cpp
295
296     WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp
297     WebProcess/Geolocation/WebGeolocationManager.cpp
298
299     WebProcess/IconDatabase/WebIconDatabaseProxy.cpp
300
301     WebProcess/InjectedBundle/InjectedBundle.cpp
302     WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp
303     WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp
304     WebProcess/InjectedBundle/InjectedBundleClient.cpp
305     WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
306     WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp
307     WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp
308     WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp
309     WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp
310     WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.cpp
311     WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp
312     WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp
313     WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp
314     WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp
315     WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
316
317     WebProcess/InjectedBundle/API/c/WKBundle.cpp
318     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp
319     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp
320     WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
321     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp
322     WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
323     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp
324     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
325     WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
326     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp
327     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
328     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp
329     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp
330
331     WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
332     WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
333
334     WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp
335
336     WebProcess/MediaCache/WebMediaCacheManager.cpp
337
338     WebProcess/Plugins/Plugin.cpp
339     WebProcess/Plugins/PluginProcessConnection.cpp
340     WebProcess/Plugins/PluginProcessConnectionManager.cpp
341     WebProcess/Plugins/PluginProxy.cpp
342     WebProcess/Plugins/PluginView.cpp
343
344     WebProcess/Plugins/Netscape/JSNPMethod.cpp
345     WebProcess/Plugins/Netscape/JSNPObject.cpp
346     WebProcess/Plugins/Netscape/NPJSObject.cpp
347     WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp
348     WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp
349     WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
350     WebProcess/Plugins/Netscape/NetscapePlugin.cpp
351     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
352     WebProcess/Plugins/Netscape/NetscapePluginStream.cpp
353
354     WebProcess/ResourceCache/WebResourceCacheManager.cpp
355
356     WebProcess/WebCoreSupport/WebChromeClient.cpp
357     WebProcess/WebCoreSupport/WebContextMenuClient.cpp
358     WebProcess/WebCoreSupport/WebDatabaseManager.cpp
359     WebProcess/WebCoreSupport/WebDragClient.cpp
360     WebProcess/WebCoreSupport/WebEditorClient.cpp
361     WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
362     WebProcess/WebCoreSupport/WebGeolocationClient.cpp
363     WebProcess/WebCoreSupport/WebInspectorClient.cpp
364     WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp
365     WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
366     WebProcess/WebCoreSupport/WebPopupMenu.cpp
367     WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp
368
369     WebProcess/WebPage/DecoderAdapter.cpp
370     WebProcess/WebPage/DrawingArea.cpp
371     WebProcess/WebPage/DrawingAreaImpl.cpp
372     WebProcess/WebPage/EncoderAdapter.cpp
373     WebProcess/WebPage/FindController.cpp
374     WebProcess/WebPage/LayerTreeHost.cpp
375     WebProcess/WebPage/PageOverlay.cpp
376     WebProcess/WebPage/TiledDrawingArea.cpp
377     WebProcess/WebPage/WebBackForwardListProxy.cpp
378     WebProcess/WebPage/WebContextMenu.cpp
379     WebProcess/WebPage/WebUndoStep.cpp
380     WebProcess/WebPage/WebFrame.cpp
381     WebProcess/WebPage/WebInspector.cpp
382     WebProcess/WebPage/WebOpenPanelResultListener.cpp
383     WebProcess/WebPage/WebPage.cpp
384     WebProcess/WebPage/WebPageGroupProxy.cpp
385 )
386
387 SET(WebKit2_MESSAGES_IN_FILES
388     UIProcess/WebMediaCacheManagerProxy.messages.in
389     UIProcess/WebCookieManagerProxy.messages.in
390     UIProcess/Plugins/PluginProcessProxy.messages.in
391     UIProcess/WebInspectorProxy.messages.in
392     UIProcess/WebFullScreenManagerProxy.messages.in
393     UIProcess/WebDatabaseManagerProxy.messages.in
394     UIProcess/WebPageProxy.messages.in
395     UIProcess/WebIconDatabase.messages.in
396     UIProcess/Downloads/DownloadProxy.messages.in
397     UIProcess/WebContext.messages.in
398     UIProcess/WebGeolocationManagerProxy.messages.in
399     UIProcess/DrawingAreaProxy.messages.in
400     UIProcess/WebKeyValueStorageManagerProxy.messages.in
401     UIProcess/WebResourceCacheManagerProxy.messages.in
402     UIProcess/WebProcessProxy.messages.in
403     UIProcess/WebApplicationCacheManagerProxy.messages.in
404     PluginProcess/WebProcessConnection.messages.in
405     PluginProcess/PluginControllerProxy.messages.in
406     PluginProcess/PluginProcess.messages.in
407     Shared/Plugins/NPObjectMessageReceiver.messages.in
408     WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in
409     WebProcess/MediaCache/WebMediaCacheManager.messages.in
410     WebProcess/Plugins/PluginProxy.messages.in
411     WebProcess/WebProcess.messages.in
412     WebProcess/Geolocation/WebGeolocationManager.messages.in
413     WebProcess/WebCoreSupport/WebDatabaseManager.messages.in
414     WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in
415     WebProcess/Authentication/AuthenticationManager.messages.in
416     WebProcess/ResourceCache/WebResourceCacheManager.messages.in
417     WebProcess/FullScreen/WebFullScreenManager.messages.in
418     WebProcess/Cookies/WebCookieManager.messages.in
419     WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in
420     WebProcess/WebPage/WebPage.messages.in
421     WebProcess/WebPage/WebInspector.messages.in
422     WebProcess/WebPage/DrawingArea.messages.in
423 )
424
425 # Create JavaScript C++ code given an IDL input
426 FOREACH (_file ${WebKit2_MESSAGES_IN_FILES})
427     GET_FILENAME_COMPONENT (_name ${_file} NAME_WE)
428     ADD_CUSTOM_COMMAND(
429         OUTPUT ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}Messages.h
430         MAIN_DEPENDENCY ${_file}
431         COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-message-receiver.py ${_file} > ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp
432         COMMAND ${PYTHON_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-messages-header.py ${_file} > ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}Messages.h
433         WORKING_DIRECTORY ${WEBKIT2_DIR}
434         VERBATIM)
435
436     LIST(APPEND WebKit2_SOURCES ${DERIVED_SOURCES_WEBKIT2_DIR}/${_name}MessageReceiver.cpp)
437 ENDFOREACH ()
438
439 SET(WebKit2_LIBRARIES
440     ${WebCore_LIBRARY_NAME}
441 )
442
443 SET(WebProcess_NAME ../Programs/WebProcess)
444 SET(WebProcess_SOURCES "")
445
446 SET(WebProcess_LIBRARIES
447     ${JavaScriptCore_LIBRARY_NAME}
448     ${WebCore_LIBRARY_NAME}
449     ${WebKit2_LIBRARY_NAME}
450 )
451
452 SET(ForwardingHeaders_NAME )
453 SET(ForwardingNetworkHeaders_NAME )
454 INCLUDE_IF_EXISTS(${WEBKIT2_DIR}/Platform${PORT}.cmake)
455
456 ADD_DEFINITIONS(-DBUILDING_WEBKIT)
457 ADD_DEFINITIONS(-DWTF_USE_JSC=1)
458 INCLUDE_DIRECTORIES(${WebKit2_INCLUDE_DIRECTORIES})
459 ADD_LIBRARY(${WebKit2_LIBRARY_NAME} ${WebKit2_LIBRARY_TYPE} ${WebKit2_SOURCES})
460
461 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${WebCore_LIBRARY_NAME})
462 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${ForwardingHeaders_NAME})
463 ADD_DEPENDENCIES(${WebKit2_LIBRARY_NAME} ${ForwardingNetworkHeaders_NAME})
464 TARGET_LINK_LIBRARIES(${WebKit2_LIBRARY_NAME} ${WebKit2_LIBRARIES})
465
466 ADD_EXECUTABLE(${WebProcess_NAME} ${WebProcess_SOURCES})
467 TARGET_LINK_LIBRARIES(${WebProcess_NAME} ${WebProcess_LIBRARIES})
468
469 SET_TARGET_PROPERTIES(${WebKit2_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
470 IF (WebKit2_LINK_FLAGS)
471     ADD_TARGET_PROPERTIES(${WebKit2_LIBRARY_NAME} LINK_FLAGS "${WebKit2_LINK_FLAGS}")
472     ADD_TARGET_PROPERTIES(${WebProcess_NAME} LINK_FLAGS "${WebKit2_LINK_FLAGS}")
473 ENDIF ()
474
475 INSTALL(TARGETS ${WebKit2_LIBRARY_NAME} DESTINATION lib)