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