a94c7e11ce6898fa0c58a6b06b193107807dfa84
[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 list(APPEND WebKit_INCLUDE_DIRECTORIES
93     "${WEBKIT_DIR}/Platform/classifier"
94     "${WEBKIT_DIR}/Platform/generic"
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/win"
101     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
102     "${WEBKIT_DIR}/UIProcess/API/C/curl"
103     "${WEBKIT_DIR}/UIProcess/API/C/win"
104     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
105     "${WEBKIT_DIR}/UIProcess/API/win"
106     "${WEBKIT_DIR}/UIProcess/CoordinatedGraphics"
107     "${WEBKIT_DIR}/UIProcess/Inspector/socket"
108     "${WEBKIT_DIR}/UIProcess/Inspector/win"
109     "${WEBKIT_DIR}/UIProcess/Plugins/win"
110     "${WEBKIT_DIR}/UIProcess/win"
111     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
112     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
113     "${WEBKIT_DIR}/WebProcess/Inspector/win"
114     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
115     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
116     "${WEBKIT_DIR}/WebProcess/WebPage/win"
117     "${WEBKIT_DIR}/win"
118 )
119
120 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
121 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
122
123 list(APPEND WebProcess_SOURCES
124     WebProcess/EntryPoint/win/WebProcessMain.cpp
125 )
126
127 list(APPEND NetworkProcess_SOURCES
128     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
129 )
130
131 list(APPEND GPUProcess_SOURCES
132     GPUProcess/EntryPoint/win/GPUProcessMain.cpp
133 )
134
135 if (${WTF_PLATFORM_WIN_CAIRO})
136     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
137
138     list(APPEND WebKit_SOURCES
139         NetworkProcess/Cookies/curl/WebCookieManagerCurl.cpp
140
141         NetworkProcess/cache/NetworkCacheDataCurl.cpp
142         NetworkProcess/cache/NetworkCacheIOChannelCurl.cpp
143
144         NetworkProcess/curl/NetworkDataTaskCurl.cpp
145         NetworkProcess/curl/NetworkProcessCurl.cpp
146         NetworkProcess/curl/NetworkSessionCurl.cpp
147         NetworkProcess/curl/RemoteNetworkingContextCurl.cpp
148
149         Shared/API/c/cairo/WKImageCairo.cpp
150
151         Shared/cairo/ShareableBitmapCairo.cpp
152
153         Shared/curl/WebCoreArgumentCodersCurl.cpp
154
155         UIProcess/Automation/cairo/WebAutomationSessionCairo.cpp
156
157         UIProcess/cairo/BackingStoreCairo.cpp
158
159         WebProcess/WebCoreSupport/curl/WebFrameNetworkingContext.cpp
160     )
161
162     list(APPEND WebKit_INCLUDE_DIRECTORIES
163         "${WEBKIT_DIR}/NetworkProcess/curl"
164         "${WEBKIT_DIR}/WebProcess/WebCoreSupport/curl"
165     )
166
167     list(APPEND WebKit_PRIVATE_LIBRARIES
168         $<TARGET_OBJECTS:WebCore>
169         OpenSSL::SSL
170         mfuuid.lib
171         strmiids.lib
172     )
173 endif ()
174
175 if (ENABLE_REMOTE_INSPECTOR)
176     list(APPEND WebKit_SOURCES
177         UIProcess/Inspector/socket/RemoteInspectorClient.cpp
178         UIProcess/Inspector/socket/RemoteInspectorProtocolHandler.cpp
179
180         UIProcess/Inspector/win/RemoteWebInspectorProxyWin.cpp
181     )
182
183     list(APPEND WebKit_INCLUDE_DIRECTORIES
184         "${WEBKIT_DIR}/UIProcess/socket"
185     )
186 endif ()
187
188 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})
189
190 # Windows specific
191 list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
192     Shared/API/c/win/WKBaseWin.h
193
194     UIProcess/API/C/win/WKView.h
195 )
196
197 if (${WTF_PLATFORM_WIN_CAIRO})
198     list(APPEND WebKit_PUBLIC_FRAMEWORK_HEADERS
199         Shared/API/c/cairo/WKImageCairo.h
200
201         Shared/API/c/curl/WKCertificateInfoCurl.h
202
203         UIProcess/API/C/curl/WKProtectionSpaceCurl.h
204         UIProcess/API/C/curl/WKWebsiteDataStoreRefCurl.h
205     )
206 endif ()
207
208 list(APPEND WebKit_PRIVATE_DEFINITIONS
209     STATICALLY_LINKED_WITH_PAL
210     STATICALLY_LINKED_WITH_WebCore
211 )