Unreviewed, rebaseline inspector/styles/region-style-crash.html after r131176.
[WebKit.git] / Source / WebKit / PlatformEfl.cmake
1 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
2     "${CMAKE_SOURCE_DIR}/Source"
3     "${WEBKIT_DIR}/efl/ewk"
4     "${WEBKIT_DIR}/efl/WebCoreSupport"
5     "${JAVASCRIPTCORE_DIR}/ForwardingHeaders"
6     "${WEBCORE_DIR}/platform/efl"
7     "${WEBCORE_DIR}/platform/graphics/cairo"
8     "${WEBCORE_DIR}/platform/graphics/efl"
9     "${WEBCORE_DIR}/platform/network/soup"
10     ${CAIRO_INCLUDE_DIRS}
11     ${ECORE_INCLUDE_DIRS}
12     ${ECORE_EVAS_INCLUDE_DIRS}
13     ${ECORE_INPUT_INCLUDE_DIRS}
14     ${EDJE_INCLUDE_DIRS}
15     ${EFREET_INCLUDE_DIRS}
16     ${EINA_INCLUDE_DIRS}
17     ${EVAS_INCLUDE_DIRS}
18     ${HARFBUZZ_INCLUDE_DIRS}
19     ${LIBXML2_INCLUDE_DIR}
20     ${LIBXSLT_INCLUDE_DIR}
21     ${SQLITE_INCLUDE_DIR}
22     ${GLIB_INCLUDE_DIRS}
23     ${LIBSOUP_INCLUDE_DIRS}
24 )
25
26 IF (ENABLE_SVG)
27   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
28     "${WEBCORE_DIR}/svg"
29     "${WEBCORE_DIR}/svg/animation"
30     "${WEBCORE_DIR}/rendering/svg"
31   )
32 ENDIF ()
33
34 IF (ENABLE_VIDEO)
35 LIST(APPEND WebKit_INCLUDE_DIRECTORIES
36     "${WEBCORE_DIR}/platform/graphics/gstreamer"
37     ${GSTREAMER_APP_INCLUDE_DIRS}
38     ${GSTREAMER_INTERFACES_INCLUDE_DIRS}
39     ${GSTREAMER_PBUTILS_INCLUDE_DIRS}
40     ${GSTREAMER_VIDEO_INCLUDE_DIRS}
41 )
42 ENDIF()
43
44 IF (ENABLE_VIDEO_TRACK)
45   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
46     "${WEBCORE_DIR}/html/track"
47   )
48 ENDIF ()
49
50 IF (WTF_USE_FREETYPE)
51   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
52     "${WEBCORE_DIR}/platform/graphics/freetype"
53   )
54 ENDIF ()
55
56 IF (ENABLE_NOTIFICATIONS)
57   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
58     "${WEBCORE_DIR}/Modules/notifications"
59   )
60 ENDIF ()
61
62 IF (ENABLE_VIBRATION)
63   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
64     "${WEBCORE_DIR}/Modules/vibration"
65   )
66 ENDIF ()
67
68 IF (ENABLE_BATTERY_STATUS)
69   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
70     "${WEBCORE_DIR}/Modules/battery"
71   )
72 ENDIF ()
73
74 IF (ENABLE_NAVIGATOR_CONTENT_UTILS)
75   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
76     "${WEBCORE_DIR}/Modules/navigatorcontentutils"
77   )
78 ENDIF ()
79
80 LIST(APPEND WebKit_SOURCES
81     efl/WebCoreSupport/AssertMatchingEnums.cpp
82     efl/WebCoreSupport/BatteryClientEfl.cpp
83     efl/WebCoreSupport/ChromeClientEfl.cpp
84     efl/WebCoreSupport/ColorChooserEfl.cpp
85     efl/WebCoreSupport/ContextMenuClientEfl.cpp
86     efl/WebCoreSupport/DeviceOrientationClientEfl.cpp
87     efl/WebCoreSupport/DeviceMotionClientEfl.cpp
88     efl/WebCoreSupport/DragClientEfl.cpp
89     efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
90     efl/WebCoreSupport/EditorClientEfl.cpp
91     efl/WebCoreSupport/FrameLoaderClientEfl.cpp
92     efl/WebCoreSupport/FrameNetworkingContextEfl.cpp
93     efl/WebCoreSupport/FullscreenVideoControllerEfl.cpp
94     efl/WebCoreSupport/IconDatabaseClientEfl.cpp
95     efl/WebCoreSupport/InspectorClientEfl.cpp
96     efl/WebCoreSupport/NavigatorContentUtilsClientEfl.cpp 
97     efl/WebCoreSupport/NetworkInfoClientEfl.cpp
98     efl/WebCoreSupport/NotificationPresenterClientEfl.cpp
99     efl/WebCoreSupport/PageClientEfl.cpp
100     efl/WebCoreSupport/PlatformStrategiesEfl.cpp 
101     efl/WebCoreSupport/PopupMenuEfl.cpp
102     efl/WebCoreSupport/SearchPopupMenuEfl.cpp
103     efl/WebCoreSupport/StorageTrackerClientEfl.cpp
104     efl/WebCoreSupport/VibrationClientEfl.cpp
105
106     efl/ewk/ewk_auth.cpp
107     efl/ewk/ewk_auth_soup.cpp
108     efl/ewk/ewk_contextmenu.cpp
109     efl/ewk/ewk_cookies.cpp
110     efl/ewk/ewk_custom_handler.cpp
111     efl/ewk/ewk_file_chooser.cpp
112     efl/ewk/ewk_frame.cpp
113     efl/ewk/ewk_history.cpp
114     efl/ewk/ewk_intent.cpp
115     efl/ewk/ewk_intent_request.cpp
116     efl/ewk/ewk_js.cpp
117     efl/ewk/ewk_main.cpp
118     efl/ewk/ewk_network.cpp
119     efl/ewk/ewk_paint_context.cpp
120     efl/ewk/ewk_security_origin.cpp
121     efl/ewk/ewk_security_policy.cpp
122     efl/ewk/ewk_settings.cpp
123     efl/ewk/ewk_tiled_backing_store.cpp
124     efl/ewk/ewk_tiled_matrix.cpp
125     efl/ewk/ewk_tiled_model.cpp
126     efl/ewk/ewk_touch_event.cpp
127     efl/ewk/ewk_util.cpp
128     efl/ewk/ewk_view.cpp
129     efl/ewk/ewk_view_single.cpp
130     efl/ewk/ewk_view_tiled.cpp
131     efl/ewk/ewk_window_features.cpp
132     efl/ewk/ewk_web_database.cpp
133 )
134
135 LIST(APPEND WebKit_LIBRARIES
136     ${CAIRO_LIBRARIES}
137     ${ECORE_LIBRARIES}
138     ${ECORE_EVAS_LIBRARIES}
139     ${ECORE_INPUT_LIBRARIES}
140     ${EFREET_LIBRARIES}
141     ${EVAS_LIBRARIES}
142     ${FREETYPE_LIBRARIES}
143     ${HARFBUZZ_LIBRARIES}
144     ${LIBXML2_LIBRARIES}
145     ${SQLITE_LIBRARIES}
146     ${FONTCONFIG_LIBRARIES}
147     ${PNG_LIBRARY}
148     ${JPEG_LIBRARY}
149     ${CMAKE_DL_LIBS}
150     ${GLIB_LIBRARIES}
151     ${GLIB_GOBJECT_LIBRARIES}
152     ${LIBSOUP_LIBRARIES}
153 )
154
155 IF (SHARED_CORE)
156     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
157 ELSE ()
158     SET(LIBS_PRIVATE "")
159 ENDIF ()
160
161 CONFIGURE_FILE(
162     efl/ewebkit.pc.in
163     ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
164     @ONLY)
165 INSTALL(FILES ${CMAKE_BINARY_DIR}/WebKit/efl/ewebkit.pc
166     DESTINATION lib/pkgconfig)
167
168 UNSET(LIBS_PRIVATE)
169
170 SET(EWebKit_HEADERS
171     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/EWebKit.h
172     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_auth.h
173     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_contextmenu.h
174     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_cookies.h
175     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_file_chooser.h
176     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_frame.h
177     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_history.h
178     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent.h
179     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent_request.h
180     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_js.h
181     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_main.h
182     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_network.h
183     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_security_origin.h
184     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_security_policy.h
185     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_settings.h
186     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_view.h
187     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_window_features.h
188     ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_web_database.h
189 )
190
191 INSTALL(FILES ${EWebKit_HEADERS}
192         DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
193
194 INCLUDE_DIRECTORIES(${THIRDPARTY_DIR}/gtest/include)
195
196 SET(EWKUnitTests_LIBRARIES
197     ${WTF_LIBRARY_NAME}
198     ${JavaScriptCore_LIBRARY_NAME}
199     ${WebCore_LIBRARY_NAME}
200     ${WebKit_LIBRARY_NAME}
201     ${ECORE_LIBRARIES}
202     ${ECORE_EVAS_LIBRARIES}
203     ${EVAS_LIBRARIES}
204     ${EDJE_LIBRARIES}
205     gtest
206 )
207
208 SET(EWKUnitTests_INCLUDE_DIRECTORIES
209     "${CMAKE_SOURCE_DIR}/Source"
210     "${WEBKIT_DIR}/efl/ewk"
211     "${JAVASCRIPTCORE_DIR}"
212     "${WTF_DIR}"
213     "${WTF_DIR}/wtf"
214     ${ECORE_INCLUDE_DIRS}
215     ${ECORE_EVAS_INCLUDE_DIRS}
216     ${EVAS_INCLUDE_DIRS}
217     ${EDJE_INCLUDE_DIRS}
218 )
219
220 IF (ENABLE_GLIB_SUPPORT)
221     LIST(APPEND EWKUnitTests_INCLUDE_DIRECTORIES "${WTF_DIR}/wtf/gobject")
222     LIST(APPEND EWKUnitTests_LIBRARIES
223         ${GLIB_LIBRARIES}
224         ${GLIB_GTHREAD_LIBRARIES}
225     )
226 ENDIF ()
227
228 SET(DEFAULT_TEST_PAGE_DIR ${CMAKE_SOURCE_DIR}/Source/WebKit/efl/tests/resources)
229
230 ADD_DEFINITIONS(-DDEFAULT_TEST_PAGE_DIR=\"${DEFAULT_TEST_PAGE_DIR}\"
231     -DDEFAULT_THEME_PATH=\"${THEME_BINARY_DIR}\"
232     -DGTEST_LINKED_AS_SHARED_LIBRARY=1
233 )
234
235 ADD_LIBRARY(ewkTestUtils
236     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestBase.cpp
237     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestEnvironment.cpp
238     ${WEBKIT_DIR}/efl/tests/UnitTestUtils/EWKTestView.cpp
239 )
240 TARGET_LINK_LIBRARIES(ewkTestUtils ${EWKUnitTests_LIBRARIES})
241
242 SET(WEBKIT_EFL_TEST_DIR "${WEBKIT_DIR}/efl/tests/")
243
244 SET(EWKUnitTests_BINARIES
245     test_ewk_view
246 )
247
248 IF (ENABLE_API_TESTS)
249     FOREACH (testName ${EWKUnitTests_BINARIES})
250         ADD_EXECUTABLE(${testName} ${WEBKIT_EFL_TEST_DIR}/${testName}.cpp ${WEBKIT_EFL_TEST_DIR}/test_runner.cpp)
251         ADD_TEST(${testName} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${testName})
252         SET_TESTS_PROPERTIES(${testName} PROPERTIES TIMEOUT 60)
253         TARGET_LINK_LIBRARIES(${testName} ${EWKUnitTests_LIBRARIES} ewkTestUtils)
254         SET_TARGET_PROPERTIES(${testName} PROPERTIES FOLDER "WebKit")
255     ENDFOREACH ()
256 ENDIF ()
257
258 IF (ENABLE_INSPECTOR)
259     SET(WEB_INSPECTOR_DIR ${CMAKE_BINARY_DIR}/WebKit/efl/webinspector)
260     ADD_DEFINITIONS(-DWEB_INSPECTOR_DIR="${WEB_INSPECTOR_DIR}")
261     ADD_DEFINITIONS(-DWEB_INSPECTOR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/webinspector")
262     ADD_CUSTOM_TARGET(
263         web-inspector-resources ALL
264         COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${WEB_INSPECTOR_DIR}
265         COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
266         COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${WEB_INSPECTOR_DIR}/InspectorBackendCommands.js
267         DEPENDS ${WebCore_LIBRARY_NAME}
268     )
269     INSTALL(DIRECTORY ${WEB_INSPECTOR_DIR}
270         DESTINATION ${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}
271         FILES_MATCHING PATTERN "*.js"
272                        PATTERN "*.html"
273                        PATTERN "*.css"
274                        PATTERN "*.gif"
275                        PATTERN "*.png")
276 ENDIF ()