Reduce use of SessionID::defaultSessionID() in WebKit
[WebKit-https.git] / Source / WebKit / PlatformWin.cmake
1 set(WebKit_OUTPUT_NAME WebKit2)
2 set(WebKit_WebProcess_OUTPUT_NAME WebKitWebProcess)
3 set(WebKit_NetworkProcess_OUTPUT_NAME WebKitNetworkProcess)
4 set(WebKit_PluginProcess_OUTPUT_NAME WebKitPluginProcess)
5
6 add_definitions(-DBUILDING_WEBKIT)
7
8 list(APPEND WebKit_SOURCES
9     NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp
10     NetworkProcess/Classifier/WebResourceLoadStatisticsTelemetry.cpp
11
12     NetworkProcess/WebStorage/StorageManager.cpp
13
14     NetworkProcess/win/NetworkProcessMainWin.cpp
15
16     Platform/IPC/win/AttachmentWin.cpp
17     Platform/IPC/win/ConnectionWin.cpp
18
19     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
20
21     Platform/win/LoggingWin.cpp
22     Platform/win/ModuleWin.cpp
23     Platform/win/SharedMemoryWin.cpp
24
25     Shared/API/c/curl/WKCertificateInfoCurl.cpp
26
27     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
28
29     Shared/win/AuxiliaryProcessMainWin.cpp
30     Shared/win/NativeWebKeyboardEventWin.cpp
31     Shared/win/NativeWebMouseEventWin.cpp
32     Shared/win/NativeWebTouchEventWin.cpp
33     Shared/win/NativeWebWheelEventWin.cpp
34     Shared/win/WebEventFactory.cpp
35
36     UIProcess/BackingStore.cpp
37     UIProcess/DefaultUndoController.cpp
38     UIProcess/LegacySessionStateCodingNone.cpp
39     UIProcess/WebGrammarDetail.cpp
40     UIProcess/WebViewportAttributes.cpp
41
42     UIProcess/API/C/WKViewportAttributes.cpp
43
44     UIProcess/API/C/curl/WKProtectionSpaceCurl.cpp
45     UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.cpp
46
47     UIProcess/API/C/win/WKView.cpp
48
49     UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp
50
51     UIProcess/Launcher/win/ProcessLauncherWin.cpp
52
53     UIProcess/WebsiteData/curl/WebsiteDataStoreCurl.cpp
54
55     UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp
56
57     UIProcess/win/PageClientImpl.cpp
58     UIProcess/win/TextCheckerWin.cpp
59     UIProcess/win/WebContextMenuProxyWin.cpp
60     UIProcess/win/WebInspectorProxyWin.cpp
61     UIProcess/win/WebPageProxyWin.cpp
62     UIProcess/win/WebPopupMenuProxyWin.cpp
63     UIProcess/win/WebPreferencesWin.cpp
64     UIProcess/win/WebProcessPoolWin.cpp
65     UIProcess/win/WebView.cpp
66
67     WebProcess/InjectedBundle/win/InjectedBundleWin.cpp
68
69     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
70
71     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
72     WebProcess/Plugins/Netscape/win/PluginProxyWin.cpp
73
74     WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp
75     WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp
76
77     WebProcess/WebPage/AcceleratedSurface.cpp
78
79     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
80     WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp
81     WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
82
83     WebProcess/WebPage/win/WebInspectorUIWin.cpp
84     WebProcess/WebPage/win/WebPageWin.cpp
85
86     WebProcess/win/WebProcessMainWin.cpp
87     WebProcess/win/WebProcessWin.cpp
88 )
89
90 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
91 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
92 add_custom_command(
93     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
94     DEPENDS ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js
95     COMMAND cp ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
96 )
97
98 list(APPEND WebKit_INCLUDE_DIRECTORIES
99     "${WEBKIT_DIR}/NetworkProcess/win"
100     "${WEBKIT_DIR}/Platform/classifier"
101     "${WEBKIT_DIR}/PluginProcess/win"
102     "${WEBKIT_DIR}/Shared/API/c/win"
103     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
104     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
105     "${WEBKIT_DIR}/Shared/Plugins/win"
106     "${WEBKIT_DIR}/Shared/unix"
107     "${WEBKIT_DIR}/Shared/win"
108     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
109     "${WEBKIT_DIR}/UIProcess/API/C/curl"
110     "${WEBKIT_DIR}/UIProcess/API/C/win"
111     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
112     "${WEBKIT_DIR}/UIProcess/API/win"
113     "${WEBKIT_DIR}/UIProcess/CoordinatedGraphics"
114     "${WEBKIT_DIR}/UIProcess/Plugins/win"
115     "${WEBKIT_DIR}/UIProcess/win"
116     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
117     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
118     "${WEBKIT_DIR}/WebProcess/win"
119     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
120     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
121     "${WEBKIT_DIR}/WebProcess/WebPage/win"
122     "${WEBKIT_DIR}/win"
123 )
124
125 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
126     ${CAIRO_INCLUDE_DIRS}
127 )
128
129 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
130 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
131
132 list(APPEND WebProcess_SOURCES
133     WebProcess/EntryPoint/win/WebProcessMain.cpp
134 )
135
136 list(APPEND NetworkProcess_SOURCES
137     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
138 )
139
140 if (${ENABLE_PLUGIN_PROCESS})
141     list(APPEND PluginProcess_SOURCES
142     )
143 endif ()
144
145 if (${WTF_PLATFORM_WIN_CAIRO})
146     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
147
148     list(APPEND WebKit_SOURCES
149         NetworkProcess/Cookies/curl/WebCookieManagerCurl.cpp
150
151         NetworkProcess/cache/NetworkCacheDataCurl.cpp
152         NetworkProcess/cache/NetworkCacheIOChannelCurl.cpp
153
154         NetworkProcess/curl/NetworkDataTaskCurl.cpp
155         NetworkProcess/curl/NetworkProcessCurl.cpp
156         NetworkProcess/curl/NetworkSessionCurl.cpp
157         NetworkProcess/curl/RemoteNetworkingContextCurl.cpp
158
159         Shared/API/c/cairo/WKImageCairo.cpp
160
161         Shared/cairo/ShareableBitmapCairo.cpp
162
163         Shared/curl/WebCoreArgumentCodersCurl.cpp
164
165         UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
166
167         UIProcess/cairo/BackingStoreCairo.cpp
168
169         WebProcess/WebCoreSupport/curl/WebFrameNetworkingContext.cpp
170     )
171
172     list(APPEND WebKit_INCLUDE_DIRECTORIES
173         "${WEBKIT_DIR}/NetworkProcess/curl"
174         "${WEBKIT_DIR}/WebProcess/WebCoreSupport/curl"
175     )
176
177     list(APPEND WebKit_LIBRARIES
178         PRIVATE
179             ${OPENSSL_LIBRARIES}
180             mfuuid.lib
181             strmiids.lib
182     )
183 endif ()
184
185 if (ENABLE_REMOTE_INSPECTOR)
186     list(APPEND WebKit_SOURCES
187         UIProcess/socket/RemoteInspectorClient.cpp
188         UIProcess/socket/RemoteInspectorProtocolHandler.cpp
189
190         UIProcess/win/RemoteWebInspectorProxyWin.cpp
191     )
192
193     list(APPEND WebKit_INCLUDE_DIRECTORIES
194         "${WEBKIT_DIR}/UIProcess/socket"
195     )
196 endif ()
197
198 set(SharedWebKitLibraries
199     ${WebKit_LIBRARIES}
200 )
201
202 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})
203
204 # Temporarily list out shared headers here
205 set(WebKit_PUBLIC_FRAMEWORK_HEADERS
206     Shared/API/c/WKArray.h
207     Shared/API/c/WKBase.h
208     Shared/API/c/WKCertificateInfo.h
209     Shared/API/c/WKConnectionRef.h
210     Shared/API/c/WKContextMenuItem.h
211     Shared/API/c/WKContextMenuItemTypes.h
212     Shared/API/c/WKData.h
213     Shared/API/c/WKDeclarationSpecifiers.h
214     Shared/API/c/WKDeprecated.h
215     Shared/API/c/WKDiagnosticLoggingResultType.h
216     Shared/API/c/WKDictionary.h
217     Shared/API/c/WKErrorRef.h
218     Shared/API/c/WKEvent.h
219     Shared/API/c/WKFindOptions.h
220     Shared/API/c/WKGeometry.h
221     Shared/API/c/WKImage.h
222     Shared/API/c/WKMutableArray.h
223     Shared/API/c/WKMutableDictionary.h
224     Shared/API/c/WKNumber.h
225     Shared/API/c/WKPageLoadTypes.h
226     Shared/API/c/WKPageLoadTypesPrivate.h
227     Shared/API/c/WKPageVisibilityTypes.h
228     Shared/API/c/WKPluginInformation.h
229     Shared/API/c/WKSecurityOriginRef.h
230     Shared/API/c/WKSerializedScriptValue.h
231     Shared/API/c/WKString.h
232     Shared/API/c/WKStringPrivate.h
233     Shared/API/c/WKType.h
234     Shared/API/c/WKURL.h
235     Shared/API/c/WKURLRequest.h
236     Shared/API/c/WKURLResponse.h
237     Shared/API/c/WKUserContentInjectedFrames.h
238     Shared/API/c/WKUserScriptInjectionTime.h
239
240     UIProcess/API/C/WKAuthenticationChallenge.h
241     UIProcess/API/C/WKAuthenticationDecisionListener.h
242     UIProcess/API/C/WKBackForwardListItemRef.h
243     UIProcess/API/C/WKBackForwardListRef.h
244     UIProcess/API/C/WKContext.h
245     UIProcess/API/C/WKContextConfigurationRef.h
246     UIProcess/API/C/WKContextConnectionClient.h
247     UIProcess/API/C/WKContextDownloadClient.h
248     UIProcess/API/C/WKContextHistoryClient.h
249     UIProcess/API/C/WKContextInjectedBundleClient.h
250     UIProcess/API/C/WKContextPrivate.h
251     UIProcess/API/C/WKCookieManager.h
252     UIProcess/API/C/WKCredential.h
253     UIProcess/API/C/WKCredentialTypes.h
254     UIProcess/API/C/WKDownload.h
255     UIProcess/API/C/WKFormSubmissionListener.h
256     UIProcess/API/C/WKFrame.h
257     UIProcess/API/C/WKFrameHandleRef.h
258     UIProcess/API/C/WKFrameInfoRef.h
259     UIProcess/API/C/WKFramePolicyListener.h
260     UIProcess/API/C/WKGeolocationManager.h
261     UIProcess/API/C/WKGeolocationPermissionRequest.h
262     UIProcess/API/C/WKGeolocationPosition.h
263     UIProcess/API/C/WKHTTPCookieStoreRef.h
264     UIProcess/API/C/WKHitTestResult.h
265     UIProcess/API/C/WKIconDatabase.h
266     UIProcess/API/C/WKInspector.h
267     UIProcess/API/C/WKLayoutMode.h
268     UIProcess/API/C/WKMessageListener.h
269     UIProcess/API/C/WKMockDisplay.h
270     UIProcess/API/C/WKMockMediaDevice.h
271     UIProcess/API/C/WKNativeEvent.h
272     UIProcess/API/C/WKNavigationActionRef.h
273     UIProcess/API/C/WKNavigationDataRef.h
274     UIProcess/API/C/WKNavigationRef.h
275     UIProcess/API/C/WKNavigationResponseRef.h
276     UIProcess/API/C/WKNotification.h
277     UIProcess/API/C/WKNotificationManager.h
278     UIProcess/API/C/WKNotificationPermissionRequest.h
279     UIProcess/API/C/WKNotificationProvider.h
280     UIProcess/API/C/WKOpenPanelParametersRef.h
281     UIProcess/API/C/WKOpenPanelResultListener.h
282     UIProcess/API/C/WKPage.h
283     UIProcess/API/C/WKPageConfigurationRef.h
284     UIProcess/API/C/WKPageContextMenuClient.h
285     UIProcess/API/C/WKPageDiagnosticLoggingClient.h
286     UIProcess/API/C/WKPageFindClient.h
287     UIProcess/API/C/WKPageFindMatchesClient.h
288     UIProcess/API/C/WKPageFormClient.h
289     UIProcess/API/C/WKPageGroup.h
290     UIProcess/API/C/WKPageInjectedBundleClient.h
291     UIProcess/API/C/WKPageLoaderClient.h
292     UIProcess/API/C/WKPageNavigationClient.h
293     UIProcess/API/C/WKPagePolicyClient.h
294     UIProcess/API/C/WKPagePrivate.h
295     UIProcess/API/C/WKPageRenderingProgressEvents.h
296     UIProcess/API/C/WKPageStateClient.h
297     UIProcess/API/C/WKPageUIClient.h
298     UIProcess/API/C/WKPluginLoadPolicy.h
299     UIProcess/API/C/WKPreferencesRef.h
300     UIProcess/API/C/WKPreferencesRefPrivate.h
301     UIProcess/API/C/WKProcessTerminationReason.h
302     UIProcess/API/C/WKProtectionSpace.h
303     UIProcess/API/C/WKProtectionSpaceTypes.h
304     UIProcess/API/C/WKResourceCacheManager.h
305     UIProcess/API/C/WKSessionStateRef.h
306     UIProcess/API/C/WKTestingSupport.h
307     UIProcess/API/C/WKTextChecker.h
308     UIProcess/API/C/WKUserContentControllerRef.h
309     UIProcess/API/C/WKUserContentExtensionStoreRef.h
310     UIProcess/API/C/WKUserMediaPermissionCheck.h
311     UIProcess/API/C/WKUserMediaPermissionRequest.h
312     UIProcess/API/C/WKUserScriptRef.h
313     UIProcess/API/C/WKViewportAttributes.h
314     UIProcess/API/C/WKWebsiteDataStoreConfigurationRef.h
315     UIProcess/API/C/WKWebsiteDataStoreRef.h
316     UIProcess/API/C/WKWebsitePolicies.h
317     UIProcess/API/C/WKWindowFeaturesRef.h
318     UIProcess/API/C/WebKit2_C.h
319
320     UIProcess/API/cpp/WKRetainPtr.h
321
322     WebProcess/InjectedBundle/API/c/WKBundle.h
323     WebProcess/InjectedBundle/API/c/WKBundleAPICast.h
324     WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.h
325     WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.h
326     WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.h
327     WebProcess/InjectedBundle/API/c/WKBundleFileHandleRef.h
328     WebProcess/InjectedBundle/API/c/WKBundleFrame.h
329     WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
330     WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h
331     WebProcess/InjectedBundle/API/c/WKBundleInitialize.h
332     WebProcess/InjectedBundle/API/c/WKBundleInspector.h
333     WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.h
334     WebProcess/InjectedBundle/API/c/WKBundleNavigationActionPrivate.h
335     WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h
336     WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
337     WebProcess/InjectedBundle/API/c/WKBundlePage.h
338     WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h
339     WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h
340     WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h
341     WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h
342     WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h
343     WebProcess/InjectedBundle/API/c/WKBundlePageGroup.h
344     WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h
345     WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h
346     WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h
347     WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h
348     WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h
349     WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h
350     WebProcess/InjectedBundle/API/c/WKBundlePrivate.h
351     WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h
352     WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h
353 )
354
355 # Windows specific
356 list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
357     Shared/API/c/win/WKBaseWin.h
358
359     UIProcess/API/C/win/WKView.h
360 )
361
362 set(WebKit_FORWARDING_HEADERS_DIRECTORIES
363     Shared/API/c
364
365     Shared/API/c/cairo
366     Shared/API/c/cf
367     Shared/API/c/win
368
369     UIProcess/API/C
370     UIProcess/API/cpp
371
372     UIProcess/API/C/win
373
374     WebProcess/InjectedBundle/API/c
375 )
376
377 if (${WTF_PLATFORM_WIN_CAIRO})
378     list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
379         Shared/API/c/cairo/WKImageCairo.h
380
381         Shared/API/c/curl/WKCertificateInfoCurl.h
382
383         UIProcess/API/C/curl/WKProtectionSpaceCurl.h
384         UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.h
385     )
386 endif ()
387
388 WEBKIT_MAKE_FORWARDING_HEADERS(WebKit
389     TARGET_NAME WebKitFrameworkHeaders
390     DESTINATION ${WebKit_FRAMEWORK_HEADERS_DIR}/WebKit
391     FILES ${WebKit_PUBLIC_FRAMEWORK_HEADERS}
392     FLATTENED
393 )