Progress towards CMake on Windows and Mac.
[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
25     platform/graphics/opentype/OpenTypeUtilities.cpp
26
27     platform/graphics/win/DIBPixelData.cpp
28     platform/graphics/win/IconWin.cpp
29     platform/graphics/win/ImageWin.cpp
30     platform/graphics/win/IntPointWin.cpp
31     platform/graphics/win/IntRectWin.cpp
32     platform/graphics/win/IntSizeWin.cpp
33
34     platform/network/win/NetworkStateNotifierWin.cpp
35
36     platform/win/BString.cpp
37     platform/win/BitmapInfo.cpp
38     platform/win/ClipboardUtilitiesWin.cpp
39     platform/win/ContextMenuItemWin.cpp
40     platform/win/ContextMenuWin.cpp
41     platform/win/CursorWin.cpp
42     platform/win/DefWndProcWindowClass.cpp
43     platform/win/DragDataWin.cpp
44     platform/win/DragImageWin.cpp
45     platform/win/EventLoopWin.cpp
46     platform/win/FileSystemWin.cpp
47     platform/win/KeyEventWin.cpp
48     platform/win/LanguageWin.cpp
49     platform/win/LocalizedStringsWin.cpp
50     platform/win/LoggingWin.cpp
51     platform/win/MIMETypeRegistryWin.cpp
52     platform/win/PasteboardWin.cpp
53     platform/win/PlatformMouseEventWin.cpp
54     platform/win/PlatformScreenWin.cpp
55     platform/win/PopupMenuWin.cpp
56     platform/win/SSLKeyGeneratorWin.cpp
57     platform/win/ScrollbarThemeWin.cpp
58     platform/win/SearchPopupMenuWin.cpp
59     platform/win/SharedBufferWin.cpp
60     platform/win/SharedTimerWin.cpp
61     platform/win/SoundWin.cpp
62     platform/win/SystemInfo.cpp
63     platform/win/WCDataObject.cpp
64     platform/win/WebCoreInstanceHandle.cpp
65     platform/win/WheelEventWin.cpp
66     platform/win/WidgetWin.cpp
67 )
68
69 ADD_PRECOMPILED_HEADER("WebCorePrefix" WebCore_SOURCES)
70
71 list(APPEND WebCore_SOURCES
72     "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
73 )
74
75 if (${WTF_PLATFORM_WIN_CAIRO})
76     include(PlatformWinCairo.cmake)
77 endif ()
78
79 # FIXME: This should test if AVF headers are available.
80 # https://bugs.webkit.org/show_bug.cgi?id=135861
81 add_custom_command(
82     OUTPUT "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
83     WORKING_DIRECTORY "${DERIVED_SOURCES_WEBCORE_DIR}"
84     COMMAND echo /* Identifying AVFoundation Support */ > WebCoreHeaderDetection.h
85     VERBATIM)