Generate header detection headers for CMake 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     html/HTMLSelectElementWin.cpp
14
15     page/win/DragControllerWin.cpp
16     page/win/EventHandlerWin.cpp
17     page/win/FrameWin.cpp
18
19     platform/Cursor.cpp
20     platform/LocalizedStrings.cpp
21     platform/PlatformStrategies.cpp
22
23     platform/graphics/opentype/OpenTypeUtilities.cpp
24
25     platform/graphics/win/DIBPixelData.cpp
26     platform/graphics/win/GDIExtras.cpp
27     platform/graphics/win/IconWin.cpp
28     platform/graphics/win/ImageWin.cpp
29     platform/graphics/win/IntPointWin.cpp
30     platform/graphics/win/IntRectWin.cpp
31     platform/graphics/win/IntSizeWin.cpp
32
33     platform/network/win/NetworkStateNotifierWin.cpp
34
35     platform/win/BString.cpp
36     platform/win/BitmapInfo.cpp
37     platform/win/ClipboardUtilitiesWin.cpp
38     platform/win/ContextMenuItemWin.cpp
39     platform/win/ContextMenuWin.cpp
40     platform/win/CursorWin.cpp
41     platform/win/DefWndProcWindowClass.cpp
42     platform/win/DragDataWin.cpp
43     platform/win/DragImageWin.cpp
44     platform/win/EventLoopWin.cpp
45     platform/win/FileSystemWin.cpp
46     platform/win/KeyEventWin.cpp
47     platform/win/LanguageWin.cpp
48     platform/win/LocalizedStringsWin.cpp
49     platform/win/LoggingWin.cpp
50     platform/win/MIMETypeRegistryWin.cpp
51     platform/win/PasteboardWin.cpp
52     platform/win/PlatformMouseEventWin.cpp
53     platform/win/PlatformScreenWin.cpp
54     platform/win/PopupMenuWin.cpp
55     platform/win/SSLKeyGeneratorWin.cpp
56     platform/win/ScrollbarThemeWin.cpp
57     platform/win/SearchPopupMenuWin.cpp
58     platform/win/SharedBufferWin.cpp
59     platform/win/SharedTimerWin.cpp
60     platform/win/SoundWin.cpp
61     platform/win/SystemInfo.cpp
62     platform/win/WCDataObject.cpp
63     platform/win/WebCoreInstanceHandle.cpp
64     platform/win/WheelEventWin.cpp
65     platform/win/WidgetWin.cpp
66
67     plugins/PluginDatabase.cpp
68     plugins/PluginPackage.cpp
69
70     plugins/win/PluginDatabaseWin.cpp
71 )
72
73 if (ENABLE_NETSCAPE_PLUGIN_API)
74     list(APPEND WebCore_SOURCES
75         plugins/PluginView.cpp
76         plugins/npapi.cpp
77
78         plugins/win/PluginMessageThrottlerWin.cpp
79         plugins/win/PluginPackageWin.cpp
80         plugins/win/PluginViewWin.cpp
81     )
82 else ()
83     list(APPEND WebCore_SOURCES
84         plugins/PluginPackageNone.cpp
85         plugins/PluginViewNone.cpp
86     )
87 endif ()
88
89 list(APPEND WebCore_SOURCES
90     "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
91 )
92
93 # FIXME: This should test if AVF headers are available.
94 # https://bugs.webkit.org/show_bug.cgi?id=135861
95 add_custom_command(
96     OUTPUT "${DERIVED_SOURCES_WEBCORE_DIR}/WebCoreHeaderDetection.h"
97     WORKING_DIRECTORY "${DERIVED_SOURCES_WEBCORE_DIR}"
98     COMMAND echo /* Identifying AVFoundation Support */ > WebCoreHeaderDetection.h
99     VERBATIM)