Unreviewed, rolling out r231223 and r231288.
[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 set(WebKit_StorageProcess_OUTPUT_NAME WebKitStorageProcess)
6
7 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
8
9 add_definitions(-DBUILDING_WEBKIT)
10
11 list(APPEND WebKit_SOURCES
12     NetworkProcess/win/NetworkProcessMainWin.cpp
13     NetworkProcess/win/SystemProxyWin.cpp
14
15     Platform/IPC/win/AttachmentWin.cpp
16     Platform/IPC/win/ConnectionWin.cpp
17
18     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
19
20     Platform/win/LoggingWin.cpp
21     Platform/win/ModuleWin.cpp
22     Platform/win/SharedMemoryWin.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     StorageProcess/win/StorageProcessMainWin.cpp
32
33     UIProcess/AcceleratedDrawingAreaProxy.cpp
34     UIProcess/BackingStore.cpp
35     UIProcess/DefaultUndoController.cpp
36     UIProcess/DrawingAreaProxyImpl.cpp
37     UIProcess/LegacySessionStateCodingNone.cpp
38     UIProcess/WebResourceLoadStatisticsStore.cpp
39     UIProcess/WebResourceLoadStatisticsTelemetry.cpp
40
41     UIProcess/API/C/win/WKView.cpp
42
43     UIProcess/API/win/APIWebsiteDataStoreWin.cpp
44
45     UIProcess/Launcher/win/ProcessLauncherWin.cpp
46
47     UIProcess/WebStorage/StorageManager.cpp
48
49     UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp
50
51     UIProcess/win/PageClientImpl.cpp
52     UIProcess/win/TextCheckerWin.cpp
53     UIProcess/win/WebContextMenuProxyWin.cpp
54     UIProcess/win/WebInspectorProxyWin.cpp
55     UIProcess/win/WebPageProxyWin.cpp
56     UIProcess/win/WebPreferencesWin.cpp
57     UIProcess/win/WebProcessPoolWin.cpp
58     UIProcess/win/WebView.cpp
59
60     WebProcess/InjectedBundle/win/InjectedBundleWin.cpp
61
62     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
63
64     WebProcess/Plugins/Netscape/win/PluginProxyWin.cpp
65
66     WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp
67     WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp
68
69     WebProcess/WebPage/AcceleratedDrawingArea.cpp
70     WebProcess/WebPage/AcceleratedSurface.cpp
71     WebProcess/WebPage/DrawingAreaImpl.cpp
72
73     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
74     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
75     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
76
77     WebProcess/WebPage/win/WebInspectorUIWin.cpp
78     WebProcess/WebPage/win/WebPageWin.cpp
79
80     WebProcess/win/WebProcessMainWin.cpp
81     WebProcess/win/WebProcessWin.cpp
82 )
83
84 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
85 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
86 add_custom_command(
87     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
88     DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js
89     COMMAND cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
90 )
91
92 list(APPEND WebKit_INCLUDE_DIRECTORIES
93     "${WEBKIT_DIR}/NetworkProcess/win"
94     "${WEBKIT_DIR}/Platform/classifier"
95     "${WEBKIT_DIR}/PluginProcess/win"
96     "${WEBKIT_DIR}/Shared/API/c/win"
97     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
98     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
99     "${WEBKIT_DIR}/Shared/Plugins/win"
100     "${WEBKIT_DIR}/Shared/unix"
101     "${WEBKIT_DIR}/Shared/win"
102     "${WEBKIT_DIR}/StorageProcess/win"
103     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
104     "${WEBKIT_DIR}/UIProcess/API/C/win"
105     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
106     "${WEBKIT_DIR}/UIProcess/API/win"
107     "${WEBKIT_DIR}/UIProcess/Plugins/win"
108     "${WEBKIT_DIR}/UIProcess/win"
109     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
110     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
111     "${WEBKIT_DIR}/WebProcess/win"
112     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
113     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
114     "${WEBKIT_DIR}/WebProcess/WebPage/win"
115     "${WEBKIT_DIR}/win"
116 )
117
118 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
119     ${CAIRO_INCLUDE_DIRS}
120 )
121
122 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
123 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
124
125 list(APPEND WebProcess_SOURCES
126     WebProcess/EntryPoint/win/WebProcessMain.cpp
127 )
128
129 list(APPEND NetworkProcess_SOURCES
130     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
131 )
132
133 list(APPEND StorageProcess_SOURCES
134     StorageProcess/EntryPoint/win/StorageProcessMain.cpp
135 )
136
137 if (${ENABLE_PLUGIN_PROCESS})
138     list(APPEND PluginProcess_SOURCES
139     )
140 endif ()
141
142 if (${WTF_PLATFORM_WIN_CAIRO})
143     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
144
145     list(APPEND WebKit_SOURCES
146         NetworkProcess/Cookies/curl/WebCookieManagerCurl.cpp
147
148         NetworkProcess/cache/NetworkCacheCodersCurl.cpp
149         NetworkProcess/cache/NetworkCacheDataCurl.cpp
150         NetworkProcess/cache/NetworkCacheIOChannelCurl.cpp
151
152         NetworkProcess/curl/NetworkDataTaskCurl.cpp
153         NetworkProcess/curl/NetworkProcessCurl.cpp
154         NetworkProcess/curl/NetworkSessionCurl.cpp
155         NetworkProcess/curl/RemoteNetworkingContextCurl.cpp
156
157         Shared/API/c/cairo/WKImageCairo.cpp
158
159         Shared/Authentication/curl/AuthenticationManagerCurl.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 set(SharedWebKitLibraries
186     ${WebKit_LIBRARIES}
187 )
188
189 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})
190
191 set(WebKit_FORWARDING_HEADERS_DIRECTORIES
192     Platform
193     Shared
194     UIProcess
195
196     NetworkProcess/Downloads
197
198     Platform/IPC
199
200     Shared/API
201
202     Shared/API/c
203
204     Shared/API/c/cf
205     Shared/API/c/win
206
207     UIProcess/API/C
208     UIProcess/API/cpp
209
210     UIProcess/API/C/win
211
212     WebProcess/WebPage
213
214     WebProcess/InjectedBundle/API/c
215 )
216
217 WEBKIT_MAKE_FORWARDING_HEADERS(WebKit
218     DIRECTORIES ${WebKit_FORWARDING_HEADERS_DIRECTORIES}
219     FLATTENED
220 )