Resurrect CMake build on Windows.
[WebKit-https.git] / Source / WebCore / PlatformWin.cmake
1 list(APPEND WebCore_INCLUDE_DIRECTORIES
2     "${WEBCORE_DIR}/accessibility/win"
3     "${WEBCORE_DIR}/page/win"
4     "${WEBCORE_DIR}/platform/graphics/opentype"
5     "${WEBCORE_DIR}/platform/graphics/win"
6     "${WEBCORE_DIR}/platform/win"
7     "${WEBCORE_DIR}/plugins/win"
8 )
9
10 list(APPEND WebCore_SOURCES
11     accessibility/win/AccessibilityObjectWin.cpp
12
13     editing/win/EditorWin.cpp
14
15     html/HTMLSelectElementWin.cpp
16
17     page/win/DragControllerWin.cpp
18     page/win/EventHandlerWin.cpp
19     page/win/FrameWin.cpp
20
21     platform/Cursor.cpp
22     platform/LocalizedStrings.cpp
23     platform/PlatformStrategies.cpp
24     platform/VNodeTracker.cpp
25
26     platform/audio/PlatformMediaSessionManager.cpp
27
28     platform/graphics/opentype/OpenTypeUtilities.cpp
29
30     platform/graphics/win/DIBPixelData.cpp
31     platform/graphics/win/IconWin.cpp
32     platform/graphics/win/ImageWin.cpp
33     platform/graphics/win/IntPointWin.cpp
34     platform/graphics/win/IntRectWin.cpp
35     platform/graphics/win/IntSizeWin.cpp
36
37     platform/network/win/NetworkStateNotifierWin.cpp
38
39     platform/win/BString.cpp
40     platform/win/BitmapInfo.cpp
41     platform/win/ClipboardUtilitiesWin.cpp
42     platform/win/ContextMenuItemWin.cpp
43     platform/win/ContextMenuWin.cpp
44     platform/win/CursorWin.cpp
45     platform/win/DefWndProcWindowClass.cpp
46     platform/win/DragDataWin.cpp
47     platform/win/DragImageWin.cpp
48     platform/win/EventLoopWin.cpp
49     platform/win/FileSystemWin.cpp
50     platform/win/KeyEventWin.cpp
51     platform/win/LanguageWin.cpp
52     platform/win/LocalizedStringsWin.cpp
53     platform/win/LoggingWin.cpp
54     platform/win/MemoryPressureHandlerWin.cpp
55     platform/win/MIMETypeRegistryWin.cpp
56     platform/win/PasteboardWin.cpp
57     platform/win/PlatformMouseEventWin.cpp
58     platform/win/PlatformScreenWin.cpp
59     platform/win/PopupMenuWin.cpp
60     platform/win/SSLKeyGeneratorWin.cpp
61     platform/win/ScrollbarThemeWin.cpp
62     platform/win/SearchPopupMenuWin.cpp
63     platform/win/SharedBufferWin.cpp
64     platform/win/SharedTimerWin.cpp
65     platform/win/SoundWin.cpp
66     platform/win/SystemInfo.cpp
67     platform/win/WCDataObject.cpp
68     platform/win/WebCoreInstanceHandle.cpp
69     platform/win/WheelEventWin.cpp
70     platform/win/WidgetWin.cpp
71 )
72
73 list(APPEND WebCore_SOURCES
74     "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
75 )
76
77 if (${WTF_PLATFORM_WIN_CAIRO})
78     include(PlatformWinCairo.cmake)
79 endif ()
80
81 set(WebCore_FORWARDING_HEADERS_DIRECTORIES
82     Modules/indexeddb
83
84     bridge/c
85 )
86
87 WEBKIT_CREATE_FORWARDING_HEADERS(WebCore DIRECTORIES ${WebCore_FORWARDING_HEADERS_DIRECTORIES})
88
89 # FIXME: This should test if AVF headers are available.
90 # https://bugs.webkit.org/show_bug.cgi?id=135861
91 add_custom_command(
92     OUTPUT "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
93     WORKING_DIRECTORY "${DERIVED_SOURCES_WEBCORE_DIR}"
94     COMMAND echo /* Identifying AVFoundation Support */ > WebCoreHeaderDetection.h
95     VERBATIM)