[EFL] Add ewk_network.cpp|h files.
[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 LIST(APPEND WebKit_SOURCES
52     efl/WebCoreSupport/ChromeClientEfl.cpp
53     efl/WebCoreSupport/DeviceOrientationClientEfl.cpp
54     efl/WebCoreSupport/DeviceMotionClientEfl.cpp
55     efl/WebCoreSupport/DragClientEfl.cpp
56     efl/WebCoreSupport/EditorClientEfl.cpp
57     efl/WebCoreSupport/FrameLoaderClientEfl.cpp
58     efl/WebCoreSupport/FullscreenVideoControllerEfl.cpp
59     efl/WebCoreSupport/InspectorClientEfl.cpp
60
61     efl/ewk/ewk_contextmenu.cpp
62     efl/ewk/ewk_cookies.cpp
63     efl/ewk/ewk_frame.cpp
64     efl/ewk/ewk_history.cpp
65     efl/ewk/ewk_main.cpp
66     efl/ewk/ewk_network.cpp
67     efl/ewk/ewk_settings.cpp
68     efl/ewk/ewk_tiled_backing_store.c
69     efl/ewk/ewk_tiled_matrix.c
70     efl/ewk/ewk_tiled_model.c
71     efl/ewk/ewk_util.cpp
72     efl/ewk/ewk_view.cpp
73     efl/ewk/ewk_view_single.c
74     efl/ewk/ewk_view_tiled.c
75     efl/ewk/ewk_window_features.cpp
76 )
77
78 LIST(APPEND WebKit_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 IF (ENABLE_GLIB_SUPPORT)
92   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
93     ${Gdk_INCLUDE_DIRS}
94     ${Glib_INCLUDE_DIRS}
95     ${JAVASCRIPTCORE_DIR}/wtf/gobject
96   )
97   LIST(APPEND WebKit_LIBRARIES
98     ${Glib_LIBRARIES}
99     ${Gdk_LIBRARIES}
100   )
101 ENDIF ()
102
103 IF (WTF_USE_SOUP)
104   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${LIBSOUP24_INCLUDE_DIRS})
105   LIST(APPEND WebKit_LIBRARIES ${LIBSOUP24_LIBRARIES})
106   LIST(APPEND WebKit_SOURCES
107     efl/ewk/ewk_auth.cpp
108     efl/ewk/ewk_auth_soup.cpp
109   )
110 ENDIF ()
111
112 IF (WTF_USE_CURL)
113   LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${CURL_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
114   LIST(APPEND WebKit_LIBRARIES ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
115 ENDIF ()
116
117 SET(BUILD_DATA_DIR ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme)
118 SET(BUILD_DATA_DIR ${BUILD_DATA_DIR} PARENT_SCOPE)
119 FILE(MAKE_DIRECTORY ${BUILD_DATA_DIR})
120
121 SET(WebKit_THEME_DEFINITION "")
122 IF (ENABLE_PROGRESS_TAG)
123   LIST(APPEND WebKit_THEME_DEFINITION "-DENABLE_PROGRESS_TAG")
124 ENDIF ()
125
126 SET(WebKit_THEME ${BUILD_DATA_DIR}/default.edj)
127 ADD_CUSTOM_COMMAND(
128   OUTPUT ${WebKit_THEME}
129   COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WebKit_THEME_DEFINITION} ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
130   DEPENDS
131     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
132     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png
133     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png
134     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
135     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
136     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png
137     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png
138     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
139     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
140     ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
141     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
142     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
143     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
144     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
145     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
146     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
147     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
148     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
149     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
150     ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
151     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
152     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
153     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
154     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
155     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
156     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
157     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
158     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
159     ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
160     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
161     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
162     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
163     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
164     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
165     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
166     ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
167     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
168     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
169     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
170     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
171     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
172     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
173     ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
174     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
175     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
176     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
177     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
178     ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
179     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
180     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
181     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
182     ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
183     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
184     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
185     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
186     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
187     ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
188     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
189     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
190     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
191     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
192     ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
193     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/progressbar.edc
194     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/shelf_inset.png
195     ${WEBKIT_DIR}/efl/DefaultTheme/widget/progressbar/bt_base.png
196   VERBATIM
197 )
198
199 LIST(APPEND WebKit_SOURCES
200      ${WebKit_THEME}
201 )
202
203 IF (SHARED_CORE)
204     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
205 ELSE ()
206     SET(LIBS_PRIVATE "")
207 ENDIF ()
208
209 CONFIGURE_FILE(
210     efl/ewebkit.pc.in
211     ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
212     @ONLY)
213 INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
214     DESTINATION lib/pkgconfig)
215
216 UNSET(LIBS_PRIVATE)
217
218 FILE(GLOB EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/*.h")
219 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_private.h")
220 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_tiled_private.h")
221 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_tiled_backing_store.h")
222 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_tiled_matrix.h")
223 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_tiled_model.h")
224
225 IF (NOT WTF_USE_SOUP)
226     LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth_soup.h")
227 ENDIF ()
228
229 INSTALL(FILES ${EWebKit_HEADERS}
230         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
231
232 INSTALL(FILES ${WebKit_THEME}
233         DESTINATION share/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)