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