[WK2][EFL] creating dummy class derived from ResourceHandleClient for Efl download...
[WebKit-https.git] / Source / WebKit2 / PlatformEfl.cmake
1 INCLUDE(WebKitEfl)
2
3 LIST(APPEND WebKit2_LINK_FLAGS
4     ${ECORE_X_LDFLAGS}
5     ${EDJE_LDFLAGS}
6     ${EFLDEPS_LDFLAGS}
7     ${EVAS_LDFLAGS}
8 )
9
10 LIST(APPEND WebKit2_SOURCES
11     Platform/efl/ModuleEfl.cpp
12     Platform/efl/RunLoopEfl.cpp
13     Platform/efl/WorkQueueEfl.cpp
14     Platform/unix/SharedMemoryUnix.cpp
15
16     Platform/CoreIPC/unix/ConnectionUnix.cpp
17     Platform/CoreIPC/unix/AttachmentUnix.cpp
18
19     Shared/API/c/gtk/WKGraphicsContextGtk.cpp
20
21     Shared/cairo/LayerTreeContextCairo.cpp
22     Shared/cairo/ShareableBitmapCairo.cpp
23
24     Shared/efl/NativeWebKeyboardEventEfl.cpp
25     Shared/efl/NativeWebWheelEventEfl.cpp
26     Shared/efl/NativeWebMouseEventEfl.cpp
27     Shared/efl/WebEventFactory.cpp
28     Shared/efl/WebCoreArgumentCodersEfl.cpp
29
30     UIProcess/API/efl/PageClientImpl.cpp
31     UIProcess/API/efl/ewk_view.cpp
32
33     UIProcess/cairo/BackingStoreCairo.cpp
34
35     UIProcess/efl/TextCheckerEfl.cpp
36     UIProcess/efl/WebContextEfl.cpp
37     UIProcess/efl/WebInspectorEfl.cpp
38     UIProcess/efl/WebPageProxyEfl.cpp
39     UIProcess/efl/WebPreferencesEfl.cpp
40
41     UIProcess/Launcher/efl/ProcessLauncherEfl.cpp
42     UIProcess/Launcher/efl/ThreadLauncherEfl.cpp
43
44     UIProcess/Plugins/efl/PluginInfoStoreEfl.cpp
45     UIProcess/Plugins/efl/PluginProcessProxyEfl.cpp
46
47     WebProcess/Downloads/efl/DownloadEfl.cpp
48     WebProcess/Downloads/efl/FileDownloaderEfl.cpp
49
50     WebProcess/efl/WebProcessEfl.cpp
51     WebProcess/efl/WebProcessMainEfl.cpp
52
53     WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp
54
55     WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp
56     WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp
57     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
58     WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp
59
60     WebProcess/WebPage/efl/WebInspectorEfl.cpp
61     WebProcess/WebPage/efl/WebPageEfl.cpp
62 )
63
64 LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
65     "${WEBCORE_DIR}/platform/efl"
66     "${WEBCORE_DIR}/platform/graphics/cairo"
67     "${WEBKIT2_DIR}/Shared/efl"
68     "${WEBKIT2_DIR}/UIProcess/API/efl/"
69     "${WEBKIT2_DIR}/WebProcess/Downloads/efl"
70     "${WEBKIT2_DIR}/WebProcess/efl"
71     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
72     ${Cairo_INCLUDE_DIRS}
73     ${ECORE_X_INCLUDE_DIRS}
74     ${EDJE_INCLUDE_DIRS}
75     ${EFLDEPS_INCLUDE_DIRS}
76     ${EVAS_INCLUDE_DIRS}
77     ${LIBXML2_INCLUDE_DIR}
78     ${LIBXSLT_INCLUDE_DIRS}
79     ${SQLITE_INCLUDE_DIRS}
80 )
81
82 LIST(APPEND WebKit2_LIBRARIES
83     ${Cairo_LIBRARIES}
84     ${ECORE_X_LIBRARIES}
85     ${EFLDEPS_LIBRARIES}
86     ${Freetype_LIBRARIES}
87     ${LIBXML2_LIBRARIES}
88     ${SQLITE_LIBRARIES}
89     ${FONTCONFIG_LIBRARIES}
90     ${PNG_LIBRARY}
91     ${JPEG_LIBRARY}
92     ${CMAKE_DL_LIBS}
93 )
94
95 LIST (APPEND WebProcess_SOURCES
96     efl/MainEfl.cpp
97 )
98
99 LIST (APPEND WebProcess_LIBRARIES
100     ${Cairo_LIBRARIES}
101     ${ECORE_X_LIBRARIES}
102     ${EDJE_LIBRARIES}
103     ${EFLDEPS_LIBRARIES}
104     ${EVAS_LIBRARIES}
105     ${LIBXML2_LIBRARIES}
106     ${LIBXSLT_LIBRARIES}
107     ${SQLITE_LIBRARIES}
108 )
109
110 ADD_CUSTOM_TARGET(forwarding-headerEfl
111     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
112 )
113 SET(ForwardingHeaders_NAME forwarding-headerEfl)
114
115 IF (WTF_USE_SOUP)
116     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
117         "${WEBCORE_DIR}/platform/network/soup"
118         ${LIBSOUP24_INCLUDE_DIRS}
119     )
120     LIST(APPEND WebKit2_LIBRARIES ${LIBSOUP24_LIBRARIES})
121     LIST(APPEND WebKit2_SOURCES
122         WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
123     )
124
125     ADD_CUSTOM_TARGET(forwarding-headerSoup
126         COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
127     )
128     SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)
129 ENDIF ()
130
131 IF (WTF_USE_CURL)
132     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
133         "${WEBCORE_DIR}/platform/network/curl"
134         ${CURL_INCLUDE_DIRS}
135     )
136     LIST(APPEND WebKit2_LIBRARIES ${CURL_LIBRARIES})
137     LIST(APPEND WebKit2_SOURCES
138         WebProcess/Cookies/curl/WebCookieManagerCurl.cpp
139     )
140 ENDIF ()
141
142 IF (ENABLE_GLIB_SUPPORT)
143     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
144         ${Glib_INCLUDE_DIRS}
145         ${JAVASCRIPTCORE_DIR}/wtf/gobject
146     )
147     LIST(APPEND WebKit2_LIBRARIES
148         ${Glib_LIBRARIES}
149     )
150 ENDIF ()