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