1591dfbbc2688be15e749d8fc19217da099ee774
[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
49     WebProcess/efl/WebProcessEfl.cpp
50     WebProcess/efl/WebProcessMainEfl.cpp
51
52     WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp
53
54     WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp
55     WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp
56     WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp
57     WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp
58
59     WebProcess/WebPage/efl/WebInspectorEfl.cpp
60     WebProcess/WebPage/efl/WebPageEfl.cpp
61 )
62
63 LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
64     "${WEBCORE_DIR}/platform/efl"
65     "${WEBCORE_DIR}/platform/graphics/cairo"
66     "${WEBKIT2_DIR}/Shared/efl"
67     "${WEBKIT2_DIR}/UIProcess/API/efl/"
68     "${WEBKIT2_DIR}/WebProcess/efl"
69     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
70     ${Cairo_INCLUDE_DIRS}
71     ${ECORE_X_INCLUDE_DIRS}
72     ${EDJE_INCLUDE_DIRS}
73     ${EFLDEPS_INCLUDE_DIRS}
74     ${EVAS_INCLUDE_DIRS}
75     ${LIBXML2_INCLUDE_DIR}
76     ${LIBXSLT_INCLUDE_DIRS}
77     ${SQLITE_INCLUDE_DIRS}
78 )
79
80 LIST(APPEND WebKit2_LIBRARIES
81     ${Cairo_LIBRARIES}
82     ${ECORE_X_LIBRARIES}
83     ${EFLDEPS_LIBRARIES}
84     ${Freetype_LIBRARIES}
85     ${LIBXML2_LIBRARIES}
86     ${SQLITE_LIBRARIES}
87     ${FONTCONFIG_LIBRARIES}
88     ${PNG_LIBRARY}
89     ${JPEG_LIBRARY}
90     ${CMAKE_DL_LIBS}
91 )
92
93 LIST (APPEND WebProcess_SOURCES
94     efl/MainEfl.cpp
95 )
96
97 LIST (APPEND WebProcess_LIBRARIES
98     ${Cairo_LIBRARIES}
99     ${ECORE_X_LIBRARIES}
100     ${EDJE_LIBRARIES}
101     ${EFLDEPS_LIBRARIES}
102     ${EVAS_LIBRARIES}
103     ${LIBXML2_LIBRARIES}
104     ${LIBXSLT_LIBRARIES}
105     ${SQLITE_LIBRARIES}
106 )
107
108 ADD_CUSTOM_TARGET(forwarding-headerEfl
109     COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include efl
110 )
111 SET(ForwardingHeaders_NAME forwarding-headerEfl)
112
113 IF (WTF_USE_SOUP)
114     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
115         "${WEBCORE_DIR}/platform/network/soup"
116         ${LIBSOUP24_INCLUDE_DIRS}
117     )
118     LIST(APPEND WebKit2_LIBRARIES ${LIBSOUP24_LIBRARIES})
119     LIST(APPEND WebKit2_SOURCES
120         WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
121     )
122
123     ADD_CUSTOM_TARGET(forwarding-headerSoup
124         COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
125     )
126     SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)
127 ENDIF ()
128
129 IF (WTF_USE_CURL)
130     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
131         "${WEBCORE_DIR}/platform/network/curl"
132         ${CURL_INCLUDE_DIRS}
133     )
134     LIST(APPEND WebKit2_LIBRARIES ${CURL_LIBRARIES})
135     LIST(APPEND WebKit2_SOURCES
136         WebProcess/Cookies/curl/WebCookieManagerCurl.cpp
137     )
138 ENDIF ()
139
140 IF (ENABLE_GLIB_SUPPORT)
141     LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
142         ${Glib_INCLUDE_DIRS}
143         ${JAVASCRIPTCORE_DIR}/wtf/gobject
144     )
145     LIST(APPEND WebKit2_LIBRARIES
146         ${Glib_LIBRARIES}
147     )
148 ENDIF ()