Unreviewed, rolling out r96108, r96111, r96113, and r96116.
[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_protocol_handler.cpp
77     efl/ewk/ewk_tiled_backing_store.c
78     efl/ewk/ewk_tiled_matrix.c
79     efl/ewk/ewk_tiled_model.c
80     efl/ewk/ewk_util.cpp
81     efl/ewk/ewk_view.cpp
82     efl/ewk/ewk_view_single.cpp
83     efl/ewk/ewk_view_tiled.cpp
84     efl/ewk/ewk_window_features.cpp
85     efl/ewk/ewk_js.cpp
86 )
87
88 LIST(APPEND WebKit_LIBRARIES
89     ${Cairo_LIBRARIES}
90     ${ECORE_X_LIBRARIES}
91     ${EFLDEPS_LIBRARIES}
92     ${FREETYPE_LIBRARIES}
93     ${LIBXML2_LIBRARIES}
94     ${SQLITE_LIBRARIES}
95     ${FONTCONFIG_LIBRARIES}
96     ${PNG_LIBRARY}
97     ${JPEG_LIBRARY}
98     ${CMAKE_DL_LIBS}
99 )
100
101 IF (ENABLE_GLIB_SUPPORT)
102   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
103     ${Gdk_INCLUDE_DIRS}
104     ${Glib_INCLUDE_DIRS}
105     ${JAVASCRIPTCORE_DIR}/wtf/gobject
106   )
107   LIST(APPEND WebKit_LIBRARIES
108     ${Glib_LIBRARIES}
109     ${Gdk_LIBRARIES}
110   )
111 ENDIF ()
112
113 IF (WTF_USE_SOUP)
114   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${LIBSOUP24_INCLUDE_DIRS})
115   LIST(APPEND WebKit_LIBRARIES ${LIBSOUP24_LIBRARIES})
116   LIST(APPEND WebKit_SOURCES
117     efl/ewk/ewk_auth.cpp
118     efl/ewk/ewk_auth_soup.cpp
119     efl/ewk/ewk_protocol_handler_soup.cpp
120   )
121 ENDIF ()
122
123 IF (WTF_USE_CURL)
124   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${CURL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
125   LIST(APPEND WebKit_LIBRARIES ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
126 ENDIF ()
127
128 SET(BUILD_DATA_DIR ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme)
129 SET(BUILD_DATA_DIR ${BUILD_DATA_DIR} PARENT_SCOPE)
130 FILE(MAKE_DIRECTORY ${BUILD_DATA_DIR})
131
132 SET(WebKit_THEME_DEFINITION "")
133 IF (ENABLE_PROGRESS_TAG)
134   LIST(APPEND WebKit_THEME_DEFINITION "-DENABLE_PROGRESS_TAG")
135 ENDIF ()
136
137 SET(WebKit_THEME ${BUILD_DATA_DIR}/default.edj)
138 ADD_CUSTOM_COMMAND(
139   OUTPUT ${WebKit_THEME}
140   COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WebKit_THEME_DEFINITION} ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
141   DEPENDS
142     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
143     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png
144     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png
145     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
146     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
147     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png
148     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png
149     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
150     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
151     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
152     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
153     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
154     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
155     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
156     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
157     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
158     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
159     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
160     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
161     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
162     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
163     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
164     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
165     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
166     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
167     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
168     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
169     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
170     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
171     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
172     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
173     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
174     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
175     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
176     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
177     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
178     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
179     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
180     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
181     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
182     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
183     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
184     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
185     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
186     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
187     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
188     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
189     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
190     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
191     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
192     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
193     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
194     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
195     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
196     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
197     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
198     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
199     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
200     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
201     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
202     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
203     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
204     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/progressbar.edc
205     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/shelf_inset.png
206     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/bt_base.png
207   VERBATIM
208 )
209
210 LIST(APPEND WebKit_SOURCES
211      ${WebKit_THEME}
212 )
213
214 IF (SHARED_CORE)
215     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
216 ELSE ()
217     SET(LIBS_PRIVATE "")
218 ENDIF ()
219
220 CONFIGURE_FILE(
221     efl/ewebkit.pc.in
222     ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
223     @ONLY)
224 INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
225     DESTINATION lib/pkgconfig)
226
227 UNSET(LIBS_PRIVATE)
228
229 SET(EWebKit_HEADERS
230     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/EWebKit.h
231     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth.h
232     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_contextmenu.h
233     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_cookies.h
234     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_frame.h
235     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_history.h
236     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_js.h
237     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_logging.h
238     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_main.h
239     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_network.h
240     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_protocol_handler.h
241     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_settings.h
242     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_view.h
243     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_window_features.h
244 )
245
246 IF (WTF_USE_SOUP)
247     LIST(APPEND EWebKit_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth_soup.h)
248 ENDIF ()
249
250 INSTALL(FILES ${EWebKit_HEADERS}
251         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
252
253 INSTALL(FILES ${WebKit_THEME}
254         DESTINATION share/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)