[EFL] Rename ewk_view_(single|tiled).c to ewk_view_(single|tiled).cpp
[WebKit-https.git] / Source / WebKit / efl / CMakeListsEfl.txt
1 INCLUDE(WebKitEfl)
2
3 LIST(APPEND WebKit_LINK_FLAGS
4     ${ECORE_X_LDFLAGS}
5     ${EDJE_LDFLAGS}
6     ${EFLDEPS_LDFLAGS}
7     ${EVAS_LDFLAGS}
8 )
9
10 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
11     "${WEBKIT_DIR}/efl/ewk"
12     "${WEBKIT_DIR}/efl/WebCoreSupport"
13     "${WEBCORE_DIR}/platform/efl"
14     "${WEBCORE_DIR}/platform/graphics/cairo"
15     ${Cairo_INCLUDE_DIRS}
16     ${ECORE_X_INCLUDE_DIRS}
17     ${EDJE_INCLUDE_DIRS}
18     ${EFLDEPS_INCLUDE_DIRS}
19     ${EVAS_INCLUDE_DIRS}
20     ${LIBXML2_INCLUDE_DIR}
21     ${LIBXSLT_INCLUDE_DIRS}
22     ${SQLITE_INCLUDE_DIRS}
23 )
24
25 IF (ENABLE_VIDEO)
26 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
27     "${WEBCORE_DIR}/platform/graphics/gstreamer"
28     ${GStreamer-App_INCLUDE_DIRS}
29     ${GStreamer-Interfaces_INCLUDE_DIRS}
30     ${GStreamer-Pbutils_INCLUDE_DIRS}
31     ${GStreamer-Video_INCLUDE_DIRS}
32 )
33 ENDIF()
34
35 IF (WTF_USE_FREETYPE)
36   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
37     "${WEBCORE_DIR}/platform/graphics/freetype"
38   )
39 ENDIF ()
40
41 IF (WTF_USE_PANGO)
42   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
43     "${WEBCORE_DIR}/platform/graphics/pango"
44     ${Pango_INCLUDE_DIRS}
45   )
46   LIST(APPEND WebKit_LIBRARIES
47     ${Pango_LIBRARIES}
48   )
49 ENDIF ()
50
51 IF (ENABLE_NOTIFICATIONS)
52   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
53     "${WEBCORE_DIR}/notifications"
54   )
55 ENDIF ()
56
57 LIST(APPEND WebKit_SOURCES
58     efl/WebCoreSupport/ChromeClientEfl.cpp
59     efl/WebCoreSupport/DeviceOrientationClientEfl.cpp
60     efl/WebCoreSupport/DeviceMotionClientEfl.cpp
61     efl/WebCoreSupport/DragClientEfl.cpp
62     efl/WebCoreSupport/EditorClientEfl.cpp
63     efl/WebCoreSupport/FrameLoaderClientEfl.cpp
64     efl/WebCoreSupport/FullscreenVideoControllerEfl.cpp
65     efl/WebCoreSupport/IconDatabaseClientEfl.cpp
66     efl/WebCoreSupport/InspectorClientEfl.cpp
67     efl/WebCoreSupport/NotificationPresenterClientEfl.cpp
68
69     efl/ewk/ewk_contextmenu.cpp
70     efl/ewk/ewk_cookies.cpp
71     efl/ewk/ewk_frame.cpp
72     efl/ewk/ewk_history.cpp
73     efl/ewk/ewk_main.cpp
74     efl/ewk/ewk_network.cpp
75     efl/ewk/ewk_settings.cpp
76     efl/ewk/ewk_tiled_backing_store.c
77     efl/ewk/ewk_tiled_matrix.c
78     efl/ewk/ewk_tiled_model.c
79     efl/ewk/ewk_util.cpp
80     efl/ewk/ewk_view.cpp
81     efl/ewk/ewk_view_single.cpp
82     efl/ewk/ewk_view_tiled.cpp
83     efl/ewk/ewk_window_features.cpp
84     efl/ewk/ewk_js.cpp
85 )
86
87 LIST(APPEND WebKit_LIBRARIES
88     ${Cairo_LIBRARIES}
89     ${ECORE_X_LIBRARIES}
90     ${EFLDEPS_LIBRARIES}
91     ${Freetype_LIBRARIES}
92     ${LIBXML2_LIBRARIES}
93     ${SQLITE_LIBRARIES}
94     ${FONTCONFIG_LIBRARIES}
95     ${PNG_LIBRARY}
96     ${JPEG_LIBRARY}
97     ${CMAKE_DL_LIBS}
98 )
99
100 IF (ENABLE_GLIB_SUPPORT)
101   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
102     ${Gdk_INCLUDE_DIRS}
103     ${Glib_INCLUDE_DIRS}
104     ${JAVASCRIPTCORE_DIR}/wtf/gobject
105   )
106   LIST(APPEND WebKit_LIBRARIES
107     ${Glib_LIBRARIES}
108     ${Gdk_LIBRARIES}
109   )
110 ENDIF ()
111
112 IF (WTF_USE_SOUP)
113   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${LIBSOUP24_INCLUDE_DIRS})
114   LIST(APPEND WebKit_LIBRARIES ${LIBSOUP24_LIBRARIES})
115   LIST(APPEND WebKit_SOURCES
116     efl/ewk/ewk_auth.cpp
117     efl/ewk/ewk_auth_soup.cpp
118   )
119 ENDIF ()
120
121 IF (WTF_USE_CURL)
122   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${CURL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
123   LIST(APPEND WebKit_LIBRARIES ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
124 ENDIF ()
125
126 SET(BUILD_DATA_DIR ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme)
127 SET(BUILD_DATA_DIR ${BUILD_DATA_DIR} PARENT_SCOPE)
128 FILE(MAKE_DIRECTORY ${BUILD_DATA_DIR})
129
130 SET(WebKit_THEME_DEFINITION "")
131 IF (ENABLE_PROGRESS_TAG)
132   LIST(APPEND WebKit_THEME_DEFINITION "-DENABLE_PROGRESS_TAG")
133 ENDIF ()
134
135 SET(WebKit_THEME ${BUILD_DATA_DIR}/default.edj)
136 ADD_CUSTOM_COMMAND(
137   OUTPUT ${WebKit_THEME}
138   COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WebKit_THEME_DEFINITION} ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
139   DEPENDS
140     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
141     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png
142     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png
143     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
144     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
145     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png
146     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png
147     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
148     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
149     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
150     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
151     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
152     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
153     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
154     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
155     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
156     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
157     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
158     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
159     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
160     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
161     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
162     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
163     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
164     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
165     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
166     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
167     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
168     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
169     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
170     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
171     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
172     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
173     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
174     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
175     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
176     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
177     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
178     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
179     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
180     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
181     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
182     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
183     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
184     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
185     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
186     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
187     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
188     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
189     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
190     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
191     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
192     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
193     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
194     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
195     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
196     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
197     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
198     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
199     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
200     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
201     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
202     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/progressbar.edc
203     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/shelf_inset.png
204     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/bt_base.png
205   VERBATIM
206 )
207
208 LIST(APPEND WebKit_SOURCES
209      ${WebKit_THEME}
210 )
211
212 IF (SHARED_CORE)
213     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
214 ELSE ()
215     SET(LIBS_PRIVATE "")
216 ENDIF ()
217
218 CONFIGURE_FILE(
219     efl/ewebkit.pc.in
220     ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
221     @ONLY)
222 INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
223     DESTINATION lib/pkgconfig)
224
225 UNSET(LIBS_PRIVATE)
226
227 SET(EWebKit_HEADERS
228     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/EWebKit.h
229     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth.h
230     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_contextmenu.h
231     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_cookies.h
232     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_frame.h
233     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_history.h
234     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_js.h
235     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_logging.h
236     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_main.h
237     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_network.h
238     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_settings.h
239     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_view.h
240     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_window_features.h
241 )
242
243 IF (WTF_USE_SOUP)
244     LIST(APPEND EWebKit_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth_soup.h)
245 ENDIF ()
246
247 INSTALL(FILES ${EWebKit_HEADERS}
248         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
249
250 INSTALL(FILES ${WebKit_THEME}
251         DESTINATION share/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)