57f1504ebc8d45d301e522acd717ec91c053eff0
[WebKit-https.git] / Source / WebKit / PlatformWin.cmake
1 set(WebKit_OUTPUT_NAME WebKit)
2 set(WebKit_WebProcess_OUTPUT_NAME WebKitWebProcess)
3 set(WebKit_NetworkProcess_OUTPUT_NAME WebKitNetworkProcess)
4 set(WebKit_PluginProcess_OUTPUT_NAME WebKitPluginProcess)
5 set(WebKit_StorageProcess_OUTPUT_NAME WebKitStorageProcess)
6
7 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WEBKIT_DIR})
8
9 add_definitions(-DBUILDING_WEBKIT)
10
11 list(APPEND WebKit_SOURCES
12     NetworkProcess/Downloads/curl/DownloadCurl.cpp
13
14     NetworkProcess/curl/NetworkProcessCurl.cpp
15     NetworkProcess/curl/RemoteNetworkingContextCurl.cpp
16
17     NetworkProcess/win/NetworkProcessMainWin.cpp
18     NetworkProcess/win/SystemProxyWin.cpp
19
20     Platform/win/LoggingWin.cpp
21     Platform/win/ModuleWin.cpp
22     Platform/win/SharedMemoryWin.cpp
23
24     Shared/Authentication/curl/AuthenticationManagerCurl.cpp
25
26     Shared/curl/WebCoreArgumentCodersCurl.cpp
27
28     Platform/IPC/win/AttachmentWin.cpp
29     Platform/IPC/win/ConnectionWin.cpp
30
31     StorageProcess/win/StorageProcessMainWin.cpp
32
33     WebProcess/Cookies/curl/WebCookieManagerCurl.cpp
34
35     WebProcess/InjectedBundle/win/InjectedBundleWin.cpp
36
37     WebProcess/MediaCache/WebMediaKeyStorageManager.cpp
38
39     WebProcess/Plugins/Netscape/win/PluginProxyWin.cpp
40
41     WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp
42     WebProcess/WebCoreSupport/win/WebFrameNetworkingContext.cpp
43     WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp
44
45     WebProcess/WebPage/AcceleratedDrawingArea.cpp
46     WebProcess/WebPage/AcceleratedSurface.cpp
47     WebProcess/WebPage/DrawingAreaImpl.cpp
48
49     WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
50     WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
51     WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
52     WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
53     WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
54
55     WebProcess/WebPage/win/WebInspectorUIWin.cpp
56     WebProcess/WebPage/win/WebPageWin.cpp
57
58     WebProcess/win/WebProcessMainWin.cpp
59     WebProcess/win/WebProcessWin.cpp
60 )
61
62 # DerivedSources/JavaScriptCore/inspector/InspectorBackendCommands.js is
63 # expected in DerivedSources/WebInspectorUI/UserInterface/Protocol/.
64 add_custom_command(
65     OUTPUT ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
66     DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js
67     COMMAND cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js
68 )
69
70 list(APPEND WebKit_INCLUDE_DIRECTORIES
71     "${WEBKIT_DIR}/NetworkProcess/win"
72     "${WEBKIT_DIR}/Platform/classifier"
73     "${WEBKIT_DIR}/PluginProcess/win"
74     "${WEBKIT_DIR}/Shared/API/c/win"
75     "${WEBKIT_DIR}/Shared/CoordinatedGraphics"
76     "${WEBKIT_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
77     "${WEBKIT_DIR}/Shared/Plugins/win"
78     "${WEBKIT_DIR}/Shared/unix"
79     "${WEBKIT_DIR}/Shared/win"
80     "${WEBKIT_DIR}/StorageProcess/win"
81     "${WEBKIT_DIR}/UIProcess/API/C/cairo"
82     "${WEBKIT_DIR}/UIProcess/API/C/win"
83     "${WEBKIT_DIR}/UIProcess/API/cpp/win"
84     "${WEBKIT_DIR}/UIProcess/API/win"
85     "${WEBKIT_DIR}/UIProcess/Plugins/win"
86     "${WEBKIT_DIR}/UIProcess/win"
87     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win"
88     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/win/DOM"
89     "${WEBKIT_DIR}/WebProcess/win"
90     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/win"
91     "${WEBKIT_DIR}/WebProcess/WebPage/CoordinatedGraphics"
92     "${WEBKIT_DIR}/WebProcess/WebPage/win"
93     "${WEBKIT_DIR}/win"
94 )
95
96 list(APPEND WebKit_SYSTEM_INCLUDE_DIRECTORIES
97     ${CAIRO_INCLUDE_DIRS}
98 )
99
100 set(WebKitCommonIncludeDirectories ${WebKit_INCLUDE_DIRECTORIES})
101 set(WebKitCommonSystemIncludeDirectories ${WebKit_SYSTEM_INCLUDE_DIRECTORIES})
102
103 list(APPEND WebProcess_SOURCES
104     WebProcess/EntryPoint/win/WebProcessMain.cpp
105 )
106
107 list(APPEND NetworkProcess_SOURCES
108     NetworkProcess/EntryPoint/win/NetworkProcessMain.cpp
109 )
110
111 list(APPEND StorageProcess_SOURCES
112     StorageProcess/EntryPoint/win/StorageProcessMain.cpp
113 )
114
115 if (${ENABLE_PLUGIN_PROCESS})
116     list(APPEND PluginProcess_SOURCES
117     )
118 endif ()
119
120 if (${WTF_PLATFORM_WIN_CAIRO})
121     add_definitions(-DUSE_CAIRO=1 -DUSE_CURL=1)
122
123     list(APPEND WebKit_LIBRARIES
124         libeay32.lib
125         mfuuid.lib
126         ssleay32.lib
127         strmiids.lib
128     )
129 endif ()
130
131 list(APPEND WebKit_LIBRARIES
132     WebCoreDerivedSources${DEBUG_SUFFIX}
133 )
134
135 set(SharedWebKitLibraries
136     ${WebKit_LIBRARIES}
137 )
138
139 add_custom_target(WebKit-forwarding-headers
140                   COMMAND ${PERL_EXECUTABLE}
141                   ${WEBKIT_DIR}/Scripts/generate-forwarding-headers.pl
142                   --include-path ${WEBKIT_DIR}
143                   --output ${FORWARDING_HEADERS_DIR}
144                   --platform win
145                   --platform curl
146                   )
147
148 set(WEBKIT_EXTRA_DEPENDENCIES
149     WebKit-forwarding-headers
150 )
151
152 WEBKIT_WRAP_SOURCELIST(${WebKit_SOURCES})