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