Unreviewed, reverting r260672.
[WebKit.git] / Source / WebKit / PlatformWin.cmake
1 set(WebKit_OUTPUT_NAME WebKit2)
2 set(WebProcess_OUTPUT_NAME WebKitWebProcess)
3 set(NetworkProcess_OUTPUT_NAME WebKitNetworkProcess)
4 set(GPUProcess_OUTPUT_NAME WebKitGPUProcess)
5 set(PluginProcess_OUTPUT_NAME WebKitPluginProcess)
6
7 include(Headers.cmake)
8
9 add_definitions(-DBUILDING_WEBKIT)
10
11 list(APPEND WebKit_SOURCES
12     NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp
13     NetworkProcess/Classifier/WebResourceLoadStatisticsTelemetry.cpp
14
15     NetworkProcess/WebStorage/StorageManager.cpp
16
17     NetworkProcess/curl/NetworkProcessMainCurl.cpp
18
19     Platform/IPC/win/AttachmentWin.cpp
20     Platform/IPC/win/ConnectionWin.cpp
21
22     Platform/classifier/ResourceLoadStatisticsClassifier.cpp
23
24     Platform/win/LoggingWin.cpp
25     Platform/win/ModuleWin.cpp
26     Platform/win/SharedMemoryWin.cpp
27
28     Shared/API/c/curl/WKCertificateInfoCurl.cpp
29
30     Shared/Plugins/Netscape/NetscapePluginModuleNone.cpp
31
32     Shared/win/AuxiliaryProcessMainWin.cpp
33     Shared/win/NativeWebKeyboardEventWin.cpp
34     Shared/win/NativeWebMouseEventWin.cpp
35     Shared/win/NativeWebTouchEventWin.cpp
36     Shared/win/NativeWebWheelEventWin.cpp
37     Shared/win/WebEventFactory.cpp
38
39     UIProcess/BackingStore.cpp
40     UIProcess/DefaultUndoController.cpp
41     UIProcess/LegacySessionStateCodingNone.cpp
42     UIProcess/WebGrammarDetail.cpp
43     UIProcess/WebViewportAttributes.cpp
44
45     UIProcess/API/C/WKViewportAttributes.cpp
46
47     UIProcess/API/C/curl/WKProtectionSpaceCurl.cpp
48     UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.cpp
49
50     UIProcess/API/C/win/WKView.cpp
51
52     UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp
53
54     UIProcess/Inspector/win/WebInspectorProxyWin.cpp
55
56     UIProcess/Launcher/win/ProcessLauncherWin.cpp
57
58     UIProcess/WebsiteData/curl/WebsiteDataStoreCurl.cpp
59
60     UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp
61
62     UIProcess/win/PageClientImpl.cpp
63     UIProcess/win/WebContextMenuProxyWin.cpp
64     UIProcess/win/WebPageProxyWin.cpp
65     UIProcess/win/WebPopupMenuProxyWin.cpp
66     UIProcess/win/WebProcessPoolWin.cpp
67     UIProcess/win/WebView.cpp
68
69     WebProcess/InjectedBundle/win/InjectedBundleWin.cpp
70
71     WebProcess/Inspector/win/WebInspectorUIWin.cpp
72
73     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
74
75     WebProcess/Plugins/Netscape/NetscapePluginNone.cpp
76     WebProcess/Plugins/Netscape/win/PluginProxyWin.cpp
77
78     WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp
79
80     WebProcess/WebPage/AcceleratedSurface.cpp
81
82     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
83     WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp
84     WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
85
86     WebProcess/WebPage/win/WebPageWin.cpp
87
88     WebProcess/win/WebProcessMainWin.cpp
89     WebProcess/win/WebProcessWin.cpp
90 )
91
92 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
93 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
94 add_custom_command(
95     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
96     DEPENDS ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js
97     COMMAND cp ${JavaScriptCore_DERIVED_SOURCES_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
98 )
99
100 list(APPEND WebKit_INCLUDE_DIRECTORIES
101     "${WEBKIT_DIR}/Platform/classifier"
102     "${WEBKIT_DIR}/Platform/generic"
103     "${WEBKIT_DIR}/PluginProcess/win"
104     "${WEBKIT_DIR}/Shared/API/c/win"
105     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
106     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
107     "${WEBKIT_DIR}/Shared/Plugins/win"
108     "${WEBKIT_DIR}/Shared/win"
109     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
110     "${WEBKIT_DIR}/UIProcess/API/C/curl"
111     "${WEBKIT_DIR}/UIProcess/API/C/win"
112     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
113     "${WEBKIT_DIR}/UIProcess/API/win"
114     "${WEBKIT_DIR}/UIProcess/CoordinatedGraphics"
115     "${WEBKIT_DIR}/UIProcess/Inspector/socket"
116     "${WEBKIT_DIR}/UIProcess/Inspector/win"
117     "${WEBKIT_DIR}/UIProcess/Plugins/win"
118     "${WEBKIT_DIR}/UIProcess/win"
119     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
120     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
121     "${WEBKIT_DIR}/WebProcess/Inspector/win"
122     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
123     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
124     "${WEBKIT_DIR}/WebProcess/WebPage/win"
125     "${WEBKIT_DIR}/win"
126 )
127
128 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
129 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
130
131 list(APPEND WebProcess_SOURCES
132     WebProcess/EntryPoint/win/WebProcessMain.cpp
133 )
134
135 list(APPEND NetworkProcess_SOURCES
136     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
137 )
138
139 list(APPEND GPUProcess_SOURCES
140     GPUProcess/EntryPoint/win/GPUProcessMain.cpp
141 )
142
143 if (${WTF_PLATFORM_WIN_CAIRO})
144     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
145
146     list(APPEND WebKit_SOURCES
147         NetworkProcess/Cookies/curl/WebCookieManagerCurl.cpp
148
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/cairo/ShareableBitmapCairo.cpp
160
161         Shared/curl/WebCoreArgumentCodersCurl.cpp
162
163         UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
164
165         UIProcess/cairo/BackingStoreCairo.cpp
166
167         WebProcess/WebCoreSupport/curl/WebFrameNetworkingContext.cpp
168     )
169
170     list(APPEND WebKit_INCLUDE_DIRECTORIES
171         "${WEBKIT_DIR}/NetworkProcess/curl"
172         "${WEBKIT_DIR}/WebProcess/WebCoreSupport/curl"
173     )
174
175     list(APPEND WebKit_PRIVATE_LIBRARIES
176         $<TARGET_OBJECTS:WebCore>
177         OpenSSL::SSL
178         mfuuid.lib
179         strmiids.lib
180     )
181 endif ()
182
183 if (ENABLE_REMOTE_INSPECTOR)
184     list(APPEND WebKit_SOURCES
185         UIProcess/Inspector/socket/RemoteInspectorClient.cpp
186         UIProcess/Inspector/socket/RemoteInspectorProtocolHandler.cpp
187
188         UIProcess/Inspector/win/RemoteWebInspectorProxyWin.cpp
189     )
190
191     list(APPEND WebKit_INCLUDE_DIRECTORIES
192         "${WEBKIT_DIR}/UIProcess/socket"
193     )
194 endif ()
195
196 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})
197
198 # Windows specific
199 list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
200     Shared/API/c/win/WKBaseWin.h
201
202     UIProcess/API/C/win/WKView.h
203 )
204
205 if (${WTF_PLATFORM_WIN_CAIRO})
206     list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
207         Shared/API/c/cairo/WKImageCairo.h
208
209         Shared/API/c/curl/WKCertificateInfoCurl.h
210
211         UIProcess/API/C/curl/WKProtectionSpaceCurl.h
212         UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.h
213     )
214 endif ()
215
216 list(APPEND WebKit_PRIVATE_DEFINITIONS
217     STATICALLY_LINKED_WITH_PAL
218     STATICALLY_LINKED_WITH_WebCore
219 )