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