Web Inspector: Network: add button to show system certificate dialog
[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 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
7
8 add_definitions(-DBUILDING_WEBKIT)
9
10 list(APPEND WebKit_SOURCES
11     NetworkProcess/win/NetworkProcessMainWin.cpp
12
13     Platform/IPC/win/AttachmentWin.cpp
14     Platform/IPC/win/ConnectionWin.cpp
15
16     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
17
18     Platform/win/LoggingWin.cpp
19     Platform/win/ModuleWin.cpp
20     Platform/win/SharedMemoryWin.cpp
21
22     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
23
24     Shared/win/ChildProcessMainWin.cpp
25     Shared/win/NativeWebKeyboardEventWin.cpp
26     Shared/win/NativeWebMouseEventWin.cpp
27     Shared/win/NativeWebTouchEventWin.cpp
28     Shared/win/NativeWebWheelEventWin.cpp
29     Shared/win/WebEventFactory.cpp
30
31     UIProcess/AcceleratedDrawingAreaProxy.cpp
32     UIProcess/BackingStore.cpp
33     UIProcess/DefaultUndoController.cpp
34     UIProcess/DrawingAreaProxyImpl.cpp
35     UIProcess/LegacySessionStateCodingNone.cpp
36     UIProcess/WebGrammarDetail.cpp
37     UIProcess/WebResourceLoadStatisticsStore.cpp
38     UIProcess/WebResourceLoadStatisticsTelemetry.cpp
39     UIProcess/WebViewportAttributes.cpp
40
41     UIProcess/API/C/WKViewportAttributes.cpp
42
43     UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.cpp
44
45     UIProcess/API/C/win/WKView.cpp
46
47     UIProcess/API/win/APIWebsiteDataStoreWin.cpp
48
49     UIProcess/Launcher/win/ProcessLauncherWin.cpp
50
51     UIProcess/WebStorage/StorageManager.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/AcceleratedDrawingArea.cpp
78     WebProcess/WebPage/AcceleratedSurface.cpp
79     WebProcess/WebPage/DrawingAreaImpl.cpp
80     WebProcess/WebPage/LayerTreeHost.cpp
81
82     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
83     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
84     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
85
86     WebProcess/WebPage/win/WebInspectorUIWin.cpp
87     WebProcess/WebPage/win/WebPageWin.cpp
88
89     WebProcess/win/WebProcessMainWin.cpp
90     WebProcess/win/WebProcessWin.cpp
91 )
92
93 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
94 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
95 add_custom_command(
96     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
97     DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js
98     COMMAND cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
99 )
100
101 list(APPEND WebKit_INCLUDE_DIRECTORIES
102     "${WEBKIT_DIR}/NetworkProcess/win"
103     "${WEBKIT_DIR}/Platform/classifier"
104     "${WEBKIT_DIR}/PluginProcess/win"
105     "${WEBKIT_DIR}/Shared/API/c/win"
106     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
107     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
108     "${WEBKIT_DIR}/Shared/Plugins/win"
109     "${WEBKIT_DIR}/Shared/unix"
110     "${WEBKIT_DIR}/Shared/win"
111     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
112     "${WEBKIT_DIR}/UIProcess/API/C/curl"
113     "${WEBKIT_DIR}/UIProcess/API/C/win"
114     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
115     "${WEBKIT_DIR}/UIProcess/API/win"
116     "${WEBKIT_DIR}/UIProcess/Plugins/win"
117     "${WEBKIT_DIR}/UIProcess/win"
118     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
119     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
120     "${WEBKIT_DIR}/WebProcess/win"
121     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
122     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
123     "${WEBKIT_DIR}/WebProcess/WebPage/win"
124     "${WEBKIT_DIR}/win"
125 )
126
127 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
128     ${CAIRO_INCLUDE_DIRS}
129 )
130
131 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
132 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
133
134 list(APPEND WebProcess_SOURCES
135     WebProcess/EntryPoint/win/WebProcessMain.cpp
136 )
137
138 list(APPEND NetworkProcess_SOURCES
139     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
140 )
141
142 if (${ENABLE_PLUGIN_PROCESS})
143     list(APPEND PluginProcess_SOURCES
144     )
145 endif ()
146
147 if (${WTF_PLATFORM_WIN_CAIRO})
148     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
149
150     list(APPEND WebKit_SOURCES
151         NetworkProcess/Cookies/curl/WebCookieManagerCurl.cpp
152
153         NetworkProcess/cache/NetworkCacheDataCurl.cpp
154         NetworkProcess/cache/NetworkCacheIOChannelCurl.cpp
155
156         NetworkProcess/curl/NetworkDataTaskCurl.cpp
157         NetworkProcess/curl/NetworkProcessCurl.cpp
158         NetworkProcess/curl/NetworkSessionCurl.cpp
159         NetworkProcess/curl/RemoteNetworkingContextCurl.cpp
160
161         Shared/API/c/cairo/WKImageCairo.cpp
162
163         Shared/cairo/ShareableBitmapCairo.cpp
164
165         Shared/curl/WebCoreArgumentCodersCurl.cpp
166
167         UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
168
169         UIProcess/cairo/BackingStoreCairo.cpp
170
171         WebProcess/WebCoreSupport/curl/WebFrameNetworkingContext.cpp
172     )
173
174     list(APPEND WebKit_INCLUDE_DIRECTORIES
175         "${WEBCORE_DIR}/platform/network/curl"
176         "${WEBKIT_DIR}/NetworkProcess/curl"
177         "${WEBKIT_DIR}/WebProcess/WebCoreSupport/curl"
178     )
179
180     list(APPEND WebKit_LIBRARIES
181         PRIVATE
182             ${OPENSSL_LIBRARIES}
183             mfuuid.lib
184             strmiids.lib
185     )
186 endif ()
187
188 set(SharedWebKitLibraries
189     ${WebKit_LIBRARIES}
190 )
191
192 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})
193
194 set(WebKit_FORWARDING_HEADERS_DIRECTORIES
195     Shared/API/c
196
197     Shared/API/c/cairo
198     Shared/API/c/cf
199     Shared/API/c/win
200
201     UIProcess/API/C
202     UIProcess/API/cpp
203
204     UIProcess/API/C/curl
205     UIProcess/API/C/win
206
207     WebProcess/InjectedBundle/API/c
208 )
209
210 WEBKIT_MAKE_FORWARDING_HEADERS(WebKit
211     DIRECTORIES ${WebKit_FORWARDING_HEADERS_DIRECTORIES}
212     FLATTENED
213 )