[Web Animations] Rebase some flaky tests
[WebKit-https.git] / Source / WebKitLegacy / PlatformWin.cmake
1 if (${WTF_PLATFORM_WIN_CAIRO})
2     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1 -DWEBKIT_EXPORTS=1)
3     list(APPEND WebKitLegacy_INCLUDE_DIRECTORIES
4         ${CAIRO_INCLUDE_DIRS}
5         "${WEBKIT_LIBRARIES_DIR}/include"
6         "${WEBCORE_DIR}/platform/graphics/cairo"
7     )
8     list(APPEND WebKitLegacy_SOURCES_Classes
9         win/WebDownloadCURL.cpp
10         win/WebURLAuthenticationChallengeSenderCURL.cpp
11     )
12     list(APPEND WebKitLegacy_LIBRARIES
13         ${OPENSSL_LIBRARIES}
14         PRIVATE mfuuid.lib
15         PRIVATE strmiids.lib
16     )
17 else ()
18     list(APPEND WebKitLegacy_SOURCES_Classes
19         win/WebDownloadCFNet.cpp
20         win/WebURLAuthenticationChallengeSenderCFNet.cpp
21     )
22     list(APPEND WebKitLegacy_LIBRARIES
23         PRIVATE CFNetwork${DEBUG_SUFFIX}
24         PRIVATE CoreGraphics${DEBUG_SUFFIX}
25         PRIVATE CoreText${DEBUG_SUFFIX}
26         PRIVATE QuartzCore${DEBUG_SUFFIX}
27         PRIVATE WebKitSystemInterface${DEBUG_SUFFIX}
28         PRIVATE libdispatch${DEBUG_SUFFIX}
29         PRIVATE libicuin${DEBUG_SUFFIX}
30         PRIVATE libicuuc${DEBUG_SUFFIX}
31         PRIVATE ${LIBXML2_LIBRARIES}
32         PRIVATE ${LIBXSLT_LIBRARIES}
33         PRIVATE ${SQLITE_LIBRARIES}
34         PRIVATE ${ZLIB_LIBRARIES}
35     )
36 endif ()
37
38 list(APPEND WebKitLegacy_LIBRARIES PRIVATE WTF${DEBUG_SUFFIX})
39
40 add_custom_command(
41     OUTPUT ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/WebKitVersion.h
42     MAIN_DEPENDENCY ${WEBKITLEGACY_DIR}/scripts/generate-webkitversion.pl
43     DEPENDS ${WEBKITLEGACY_DIR}/mac/Configurations/Version.xcconfig
44     COMMAND ${PERL_EXECUTABLE} ${WEBKITLEGACY_DIR}/scripts/generate-webkitversion.pl --config ${WEBKITLEGACY_DIR}/mac/Configurations/Version.xcconfig --outputDir ${DERIVED_SOURCES_WEBKITLEGACY_DIR}
45     VERBATIM)
46 list(APPEND WebKitLegacy_SOURCES ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/WebKitVersion.h)
47
48 list(APPEND WebKitLegacy_INCLUDE_DIRECTORIES
49     "${CMAKE_BINARY_DIR}/../include/private"
50     "${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore"
51     "${CMAKE_BINARY_DIR}/../include/private/WebCore"
52     "${WEBKITLEGACY_DIR}/win"
53     "${WEBKITLEGACY_DIR}/win/plugins"
54     "${WEBKITLEGACY_DIR}/win/WebCoreSupport"
55     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/include"
56     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces"
57     "${FORWARDING_HEADERS_DIR}/ANGLE"
58     "${FORWARDING_HEADERS_DIR}/ANGLE/include"
59     "${FORWARDING_HEADERS_DIR}/ANGLE/include/egl"
60     "${FORWARDING_HEADERS_DIR}/ANGLE/include/khr"
61     "${DERIVED_SOURCES_DIR}/WebKitLegacy"
62 )
63
64 list(APPEND WebKitLegacy_INCLUDES
65     win/CFDictionaryPropertyBag.h
66     win/COMEnumVariant.h
67     win/COMPropertyBag.h
68     win/COMVariantSetter.h
69     win/CodeAnalysisConfig.h
70     win/DOMCSSClasses.h
71     win/DOMCoreClasses.h
72     win/DOMEventsClasses.h
73     win/DOMHTMLClasses.h
74     win/DefaultDownloadDelegate.h
75     win/DefaultPolicyDelegate.h
76     win/ForEachCoClass.h
77     win/FullscreenVideoController.h
78     win/MarshallingHelpers.h
79     win/MemoryStream.h
80     win/ProgIDMacros.h
81     win/WebActionPropertyBag.h
82     win/WebApplicationCache.h
83     win/WebArchive.h
84     win/WebBackForwardList.h
85     win/WebCache.h
86     win/WebCachedFramePlatformData.h
87     win/WebCoreStatistics.h
88     win/WebDataSource.h
89     win/WebDatabaseManager.h
90     win/WebDocumentLoader.h
91     win/WebDownload.h
92     win/WebDropSource.h
93     win/WebElementPropertyBag.h
94     win/WebError.h
95     win/WebFrame.h
96     win/WebFramePolicyListener.h
97     win/WebGeolocationPolicyListener.h
98     win/WebGeolocationPosition.h
99     win/WebHTMLRepresentation.h
100     win/WebHistory.h
101     win/WebHistoryItem.h
102     win/WebJavaScriptCollector.h
103     win/WebKitCOMAPI.h
104     win/WebKitClassFactory.h
105     win/WebKitDLL.h
106     win/WebKitGraphics.h
107     win/WebKitLogging.h
108     win/WebKitStatistics.h
109     win/WebKitStatisticsPrivate.h
110     win/WebKitSystemBits.h
111     win/WebLocalizableStrings.h
112     win/WebMutableURLRequest.h
113     win/WebNavigationData.h
114     win/WebNotification.h
115     win/WebNotificationCenter.h
116     win/WebPreferenceKeysPrivate.h
117     win/WebPreferences.h
118     win/WebResource.h
119     win/WebScriptObject.h
120     win/WebScriptWorld.h
121     win/WebSecurityOrigin.h
122     win/WebSerializedJSValue.h
123     win/WebTextRenderer.h
124     win/WebURLAuthenticationChallenge.h
125     win/WebURLAuthenticationChallengeSender.h
126     win/WebURLCredential.h
127     win/WebURLProtectionSpace.h
128     win/WebURLResponse.h
129     win/WebUserContentURLPattern.h
130     win/WebView.h
131     win/WebWorkersPrivate.h
132 )
133
134 list(APPEND WebKitLegacy_SOURCES_Classes
135     win/AccessibleBase.cpp
136     win/AccessibleDocument.cpp
137     win/AccessibleImage.cpp
138     win/AccessibleTextImpl.cpp
139     win/BackForwardList.cpp
140     win/CFDictionaryPropertyBag.cpp
141     win/DOMCSSClasses.cpp
142     win/DOMCoreClasses.cpp
143     win/DOMEventsClasses.cpp
144     win/DOMHTMLClasses.cpp
145     win/DefaultDownloadDelegate.cpp
146     win/DefaultPolicyDelegate.cpp
147     win/ForEachCoClass.cpp
148     win/FullscreenVideoController.cpp
149     win/MarshallingHelpers.cpp
150     win/MemoryStream.cpp
151     win/WebActionPropertyBag.cpp
152     win/WebApplicationCache.cpp
153     win/WebArchive.cpp
154     win/WebBackForwardList.cpp
155     win/WebCache.cpp
156     win/WebCoreStatistics.cpp
157     win/WebDataSource.cpp
158     win/WebDatabaseManager.cpp
159     win/WebDocumentLoader.cpp
160     win/WebDownload.cpp
161     win/WebDropSource.cpp
162     win/WebElementPropertyBag.cpp
163     win/WebError.cpp
164     win/WebFrame.cpp
165     win/WebFramePolicyListener.cpp
166     win/WebGeolocationPolicyListener.cpp
167     win/WebGeolocationPosition.cpp
168     win/WebHTMLRepresentation.cpp
169     win/WebHistory.cpp
170     win/WebHistoryItem.cpp
171     win/WebInspector.cpp
172     win/WebJavaScriptCollector.cpp
173     win/WebKitCOMAPI.cpp
174     win/WebKitClassFactory.cpp
175     win/WebKitDLL.cpp
176     win/WebKitLogging.cpp
177     win/WebKitMessageLoop.cpp
178     win/WebKitStatistics.cpp
179     win/WebKitSystemBits.cpp
180     win/WebLocalizableStrings.cpp
181     win/WebMutableURLRequest.cpp
182     win/WebNavigationData.cpp
183     win/WebNodeHighlight.cpp
184     win/WebNotification.cpp
185     win/WebNotificationCenter.cpp
186     win/WebPreferences.cpp
187     win/WebResource.cpp
188     win/WebScriptObject.cpp
189     win/WebScriptWorld.cpp
190     win/WebSecurityOrigin.cpp
191     win/WebSerializedJSValue.cpp
192     win/WebTextRenderer.cpp
193     win/WebURLAuthenticationChallenge.cpp
194     win/WebURLAuthenticationChallengeSender.cpp
195     win/WebURLCredential.cpp
196     win/WebURLProtectionSpace.cpp
197     win/WebURLResponse.cpp
198     win/WebUserContentURLPattern.cpp
199     win/WebView.cpp
200     win/WebWorkersPrivate.cpp
201
202     win/plugins/PluginDatabase.cpp
203     win/plugins/PluginDatabaseWin.cpp
204     win/plugins/PluginDebug.cpp
205     win/plugins/PluginMainThreadScheduler.cpp
206     win/plugins/PluginMessageThrottlerWin.cpp
207     win/plugins/PluginPackage.cpp
208     win/plugins/PluginPackageWin.cpp
209     win/plugins/PluginStream.cpp
210     win/plugins/PluginView.cpp
211     win/plugins/PluginViewWin.cpp
212     win/plugins/npapi.cpp
213
214     win/storage/WebDatabaseProvider.cpp
215 )
216
217 list(APPEND WebKitLegacy_SOURCES_WebCoreSupport
218     win/WebCoreSupport/AcceleratedCompositingContext.cpp
219     win/WebCoreSupport/EmbeddedWidget.cpp
220     win/WebCoreSupport/EmbeddedWidget.h
221     win/WebCoreSupport/WebChromeClient.cpp
222     win/WebCoreSupport/WebChromeClient.h
223     win/WebCoreSupport/WebContextMenuClient.cpp
224     win/WebCoreSupport/WebContextMenuClient.h
225     win/WebCoreSupport/WebDesktopNotificationsDelegate.cpp
226     win/WebCoreSupport/WebDesktopNotificationsDelegate.h
227     win/WebCoreSupport/WebDragClient.cpp
228     win/WebCoreSupport/WebDragClient.h
229     win/WebCoreSupport/WebEditorClient.cpp
230     win/WebCoreSupport/WebEditorClient.h
231     win/WebCoreSupport/WebFrameLoaderClient.cpp
232     win/WebCoreSupport/WebFrameLoaderClient.h
233     win/WebCoreSupport/WebFrameNetworkingContext.cpp
234     win/WebCoreSupport/WebFrameNetworkingContext.h
235     win/WebCoreSupport/WebGeolocationClient.cpp
236     win/WebCoreSupport/WebGeolocationClient.h
237     win/WebCoreSupport/WebInspectorClient.cpp
238     win/WebCoreSupport/WebInspectorClient.h
239     win/WebCoreSupport/WebInspectorDelegate.cpp
240     win/WebCoreSupport/WebInspectorDelegate.h
241     win/WebCoreSupport/WebPlatformStrategies.cpp
242     win/WebCoreSupport/WebPlatformStrategies.h
243     win/WebCoreSupport/WebPluginInfoProvider.cpp
244     win/WebCoreSupport/WebPluginInfoProvider.h
245     win/WebCoreSupport/WebVisitedLinkStore.cpp
246     win/WebCoreSupport/WebVisitedLinkStore.h
247 )
248
249 if (USE_CF)
250     list(APPEND WebKitLegacy_SOURCES_Classes
251         cf/WebCoreSupport/WebInspectorClientCF.cpp
252     )
253
254     list(APPEND WebKitLegacy_LIBRARIES
255         ${COREFOUNDATION_LIBRARY}
256     )
257 endif ()
258
259 if (CMAKE_SIZEOF_VOID_P EQUAL 8)
260     enable_language(ASM_MASM)
261     if (MSVC)
262         set(MASM_EXECUTABLE ml64)
263         set(MASM_FLAGS /c /Fo)
264         add_custom_command(
265             OUTPUT ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/PaintHooks.obj
266             MAIN_DEPENDENCY win/plugins/PaintHooks.asm
267             COMMAND ${MASM_EXECUTABLE} ${MASM_FLAGS}
268                 ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/PaintHooks.obj
269                 ${CMAKE_CURRENT_SOURCE_DIR}/win/plugins/PaintHooks.asm
270             VERBATIM)
271         list(APPEND WebKitLegacy_SOURCES
272             ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/PaintHooks.obj
273         )
274     else ()
275         list(APPEND WebKitLegacy_SOURCES
276             win/plugins/PaintHooks.asm
277         )
278     endif ()
279 endif ()
280
281 list(APPEND WebKitLegacy_SOURCES ${WebKitLegacy_INCLUDES} ${WebKitLegacy_SOURCES_Classes} ${WebKitLegacy_SOURCES_WebCoreSupport})
282
283 source_group(Includes FILES ${WebKitLegacy_INCLUDES})
284 source_group(Classes FILES ${WebKitLegacy_SOURCES_Classes})
285 source_group(WebCoreSupport FILES ${WebKitLegacy_SOURCES_WebCoreSupport})
286
287 # Build the COM interface:
288 macro(GENERATE_INTERFACE _infile _defines _depends)
289     get_filename_component(_filewe ${_infile} NAME_WE)
290     add_custom_command(
291         OUTPUT  ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}.h
292         MAIN_DEPENDENCY ${_infile}
293         DEPENDS ${_depends}
294         COMMAND midl.exe /I "${CMAKE_CURRENT_SOURCE_DIR}/win/Interfaces" /I "${CMAKE_CURRENT_SOURCE_DIR}/win/Interfaces/Accessible2" /I "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/include" /I "${CMAKE_CURRENT_SOURCE_DIR}/win" /WX /char signed /env win32 /tlb "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${_filewe}.tlb" /out "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces" /h "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}.h" /iid "${_filewe}_i.c" ${_defines} "${CMAKE_CURRENT_SOURCE_DIR}/${_infile}"
295         USES_TERMINAL VERBATIM)
296     set_source_files_properties(${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}.h PROPERTIES GENERATED TRUE)
297     set_source_files_properties(${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/${_filewe}_i.c PROPERTIES GENERATED TRUE)
298 endmacro()
299
300 set(MIDL_DEFINES /D\ \"__PRODUCTION__=01\")
301
302 set(WEBKITLEGACY_IDL_DEPENDENCIES
303     win/Interfaces/AccessibleComparable.idl
304     win/Interfaces/DOMCSS.idl
305     win/Interfaces/DOMCore.idl
306     win/Interfaces/DOMEvents.idl
307     win/Interfaces/DOMExtensions.idl
308     win/Interfaces/DOMHTML.idl
309     win/Interfaces/DOMPrivate.idl
310     win/Interfaces/DOMRange.idl
311     win/Interfaces/DOMWindow.idl
312     win/Interfaces/IGEN_DOMObject.idl
313     win/Interfaces/IWebArchive.idl
314     win/Interfaces/IWebBackForwardList.idl
315     win/Interfaces/IWebBackForwardListPrivate.idl
316     win/Interfaces/IWebCache.idl
317     win/Interfaces/IWebCoreStatistics.idl
318     win/Interfaces/IWebDataSource.idl
319     win/Interfaces/IWebDatabaseManager.idl
320     win/Interfaces/IWebDesktopNotificationsDelegate.idl
321     win/Interfaces/IWebDocument.idl
322     win/Interfaces/IWebDownload.idl
323     win/Interfaces/IWebEditingDelegate.idl
324     win/Interfaces/IWebEmbeddedView.idl
325     win/Interfaces/IWebError.idl
326     win/Interfaces/IWebErrorPrivate.idl
327     win/Interfaces/IWebFormDelegate.idl
328     win/Interfaces/IWebFrame.idl
329     win/Interfaces/IWebFrameLoadDelegate.idl
330     win/Interfaces/IWebFrameLoadDelegatePrivate.idl
331     win/Interfaces/IWebFrameLoadDelegatePrivate2.idl
332     win/Interfaces/IWebFramePrivate.idl
333     win/Interfaces/IWebFrameView.idl
334     win/Interfaces/IWebGeolocationPolicyListener.idl
335     win/Interfaces/IWebGeolocationPosition.idl
336     win/Interfaces/IWebGeolocationProvider.idl
337     win/Interfaces/IWebHTMLRepresentation.idl
338     win/Interfaces/IWebHTTPURLResponse.idl
339     win/Interfaces/IWebHistory.idl
340     win/Interfaces/IWebHistoryDelegate.idl
341     win/Interfaces/IWebHistoryItem.idl
342     win/Interfaces/IWebHistoryItemPrivate.idl
343     win/Interfaces/IWebHistoryPrivate.idl
344     win/Interfaces/IWebInspector.idl
345     win/Interfaces/IWebInspectorPrivate.idl
346     win/Interfaces/IWebJavaScriptCollector.idl
347     win/Interfaces/IWebKitStatistics.idl
348     win/Interfaces/IWebMutableURLRequest.idl
349     win/Interfaces/IWebMutableURLRequestPrivate.idl
350     win/Interfaces/IWebNavigationData.idl
351     win/Interfaces/IWebNotification.idl
352     win/Interfaces/IWebNotificationCenter.idl
353     win/Interfaces/IWebNotificationObserver.idl
354     win/Interfaces/IWebPolicyDelegate.idl
355     win/Interfaces/IWebPolicyDelegatePrivate.idl
356     win/Interfaces/IWebPreferences.idl
357     win/Interfaces/IWebPreferencesPrivate.idl
358     win/Interfaces/IWebResource.idl
359     win/Interfaces/IWebResourceLoadDelegate.idl
360     win/Interfaces/IWebResourceLoadDelegatePrivate.idl
361     win/Interfaces/IWebResourceLoadDelegatePrivate2.idl
362     win/Interfaces/IWebScriptObject.idl
363     win/Interfaces/IWebScriptWorld.idl
364     win/Interfaces/IWebSecurityOrigin.idl
365     win/Interfaces/IWebSerializedJSValue.idl
366     win/Interfaces/IWebSerializedJSValuePrivate.idl
367     win/Interfaces/IWebTextRenderer.idl
368     win/Interfaces/IWebUIDelegate.idl
369     win/Interfaces/IWebUIDelegate2.idl
370     win/Interfaces/IWebUIDelegatePrivate.idl
371     win/Interfaces/IWebURLAuthenticationChallenge.idl
372     win/Interfaces/IWebURLRequest.idl
373     win/Interfaces/IWebURLResponse.idl
374     win/Interfaces/IWebURLResponsePrivate.idl
375     win/Interfaces/IWebUndoManager.idl
376     win/Interfaces/IWebUndoTarget.idl
377     win/Interfaces/IWebUserContentURLPattern.idl
378     win/Interfaces/IWebView.idl
379     win/Interfaces/IWebViewPrivate.idl
380     win/Interfaces/IWebWorkersPrivate.idl
381     win/Interfaces/JavaScriptCoreAPITypes.idl
382     win/Interfaces/WebKit.idl
383     win/Interfaces/WebScrollbarTypes.idl
384
385     win/Interfaces/Accessible2/Accessible2.idl
386     win/Interfaces/Accessible2/Accessible2_2.idl
387     win/Interfaces/Accessible2/AccessibleApplication.idl
388     win/Interfaces/Accessible2/AccessibleEditableText.idl
389     win/Interfaces/Accessible2/AccessibleRelation.idl
390     win/Interfaces/Accessible2/AccessibleStates.idl
391     win/Interfaces/Accessible2/AccessibleText.idl
392     win/Interfaces/Accessible2/AccessibleText2.idl
393     win/Interfaces/Accessible2/IA2CommonTypes.idl
394     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/include/autoversion.h"
395 )
396
397 add_custom_command(
398     OUTPUT ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/include/autoversion.h
399     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
400     COMMAND ${PERL_EXECUTABLE} ${WEBKIT_LIBRARIES_DIR}/tools/scripts/auto-version.pl ${DERIVED_SOURCES_WEBKITLEGACY_DIR}
401     VERBATIM)
402
403 GENERATE_INTERFACE(win/Interfaces/WebKit.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
404 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleApplication.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
405 GENERATE_INTERFACE(win/Interfaces/Accessible2/Accessible2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
406 GENERATE_INTERFACE(win/Interfaces/Accessible2/Accessible2_2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
407 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleRelation.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
408 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleStates.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
409 GENERATE_INTERFACE(win/Interfaces/Accessible2/IA2CommonTypes.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
410 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleEditableText.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
411 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleText.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
412 GENERATE_INTERFACE(win/Interfaces/Accessible2/AccessibleText2.idl ${MIDL_DEFINES} "${WEBKITLEGACY_IDL_DEPENDENCIES}")
413
414 add_library(WebKitLegacyGUID STATIC
415     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/WebKit.h"
416     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleApplication.h"
417     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/Accessible2.h"
418     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/Accessible2_2.h"
419     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleRelation.h"
420     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleStates.h"
421     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/IA2CommonTypes.h"
422     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleEditableText.h"
423     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleText.h"
424     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleText2.h"
425     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/WebKit_i.c"
426     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleApplication_i.c"
427     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/Accessible2_i.c"
428     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/Accessible2_2_i.c"
429     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleRelation_i.c"
430     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleEditableText_i.c"
431     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleText_i.c"
432     "${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces/AccessibleText2_i.c"
433 )
434 set_target_properties(WebKitLegacyGUID PROPERTIES OUTPUT_NAME WebKitGUID${DEBUG_SUFFIX})
435
436 list(APPEND WebKitLegacy_LIBRARIES
437     PRIVATE Comctl32
438     PRIVATE Comsupp
439     PRIVATE Crypt32
440     PRIVATE D2d1
441     PRIVATE Dwrite
442     PRIVATE dxguid
443     PRIVATE Iphlpapi
444     PRIVATE Psapi
445     PRIVATE Rpcrt4
446     PRIVATE Shlwapi
447     PRIVATE Usp10
448     PRIVATE Version
449     PRIVATE Winmm
450     PRIVATE WebKitGUID${DEBUG_SUFFIX}
451     PRIVATE WindowsCodecs
452 )
453
454 if (ENABLE_GRAPHICS_CONTEXT_3D)
455     list(APPEND WebKitLegacy_LIBRARIES
456         libANGLE${DEBUG_SUFFIX}
457         libEGL${DEBUG_SUFFIX}
458         libGLESv2${DEBUG_SUFFIX}
459     )
460 endif ()
461
462 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
463 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS")
464
465 # We need the webkit libraries to come before the system default libraries to prevent symbol conflicts with uuid.lib.
466 # To do this we add system default libs as webkit libs and zero out system default libs.
467 string(REPLACE " " "\;" CXX_LIBS ${CMAKE_CXX_STANDARD_LIBRARIES})
468 list(APPEND WebKitLegacy_LIBRARIES ${CXX_LIBS})
469 set(CMAKE_CXX_STANDARD_LIBRARIES "")
470
471 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MSVC_RUNTIME_LINKER_FLAGS}")
472
473 # If this directory isn't created before midl runs and attempts to output WebKit.tlb,
474 # It fails with an unusual error - midl failed - failed to save all changes
475 file(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
476 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces)
477
478 WEBKIT_MAKE_FORWARDING_HEADERS(WebKitLegacyGUID
479     DESTINATION ${FORWARDING_HEADERS_DIR}/WebKitLegacy
480     FILES win/WebKitCOMAPI.h win/CFDictionaryPropertyBag.h
481     DERIVED_SOURCE_DIRECTORIES ${DERIVED_SOURCES_WEBKITLEGACY_DIR}/Interfaces
482     FLATTENED
483 )
484
485 set(WebKitLegacy_OUTPUT_NAME
486     WebKit${DEBUG_SUFFIX}
487 )