2010-09-04 Lucas De Marchi <lucas.demarchi@profusion.mobi>
[WebKit-https.git] / WebKit / efl / CMakeListsEfl.txt
index f6b96fd..cff1822 100644 (file)
@@ -21,12 +21,23 @@ LIST(APPEND WebKit_INCLUDE_DIRECTORIES
     ${SQLITE_INCLUDE_DIRS}
 )
 
+IF (ENABLE_VIDEO)
+LIST(APPEND WebKit_INCLUDE_DIRECTORIES
+    "${WEBCORE_DIR}/platform/graphics/gstreamer"
+    ${Gstreamer-App_INCLUDE_DIRS}
+    ${Gstreamer-Interfaces_INCLUDE_DIRS}
+    ${Gstreamer-Pbutils_INCLUDE_DIRS}
+    ${Gstreamer-Video_INCLUDE_DIRS}
+)
+ENDIF()
+
 LIST(APPEND WebKit_SOURCES
     efl/WebCoreSupport/ChromeClientEfl.cpp
     efl/WebCoreSupport/ContextMenuClientEfl.cpp
     efl/WebCoreSupport/DragClientEfl.cpp
     efl/WebCoreSupport/EditorClientEfl.cpp
     efl/WebCoreSupport/FrameLoaderClientEfl.cpp
+    efl/WebCoreSupport/FullscreenVideoControllerEfl.cpp
     efl/WebCoreSupport/InspectorClientEfl.cpp
 
     efl/ewk/ewk_contextmenu.cpp
@@ -49,12 +60,17 @@ LIST(APPEND WebKit_LIBRARIES
     ${LIBXML2_LIBRARIES}
     ${Pango_LIBRARIES}
     ${SQLITE_LIBRARIES}
+    ${FONTCONFIG_LIBRARIES}
+    ${PNG_LIBRARY}
+    ${JPEG_LIBRARY}
+    ${CMAKE_DL_LIBS}
 )
 
 IF (ENABLE_GLIB_SUPPORT)
   LIST(APPEND WebKit_INCLUDE_DIRECTORIES
     ${Gdk_INCLUDE_DIRS}
     ${Glib_INCLUDE_DIRS}
+    ${JAVASCRIPTCORE_DIR}/wtf/gobject
   )
   LIST(APPEND WebKit_LIBRARIES
     ${Glib_LIBRARIES}
@@ -73,60 +89,76 @@ IF (WTF_USE_CURL)
 ENDIF ()
 
 FILE(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme)
-GENERATE_EDJ(
+SET(WebKit_THEME ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme/default.edj)
+ADD_CUSTOM_COMMAND(
+  OUTPUT ${WebKit_THEME}
+  COMMAND ${EDJE_CC_EXECUTABLE} -v -id ${WEBKIT_DIR}/efl/DefaultTheme ${WEBKIT_DIR}/efl/DefaultTheme/default.edc ${WebKit_THEME}
+  DEPENDS
     ${WEBKIT_DIR}/efl/DefaultTheme/default.edc
-    ${CMAKE_BINARY_DIR}/WebKit/efl/DefaultTheme/default.edj
-    "-id;${WEBKIT_DIR}/efl/DefaultTheme"
-)
-
-SET(EWebLauncher_SOURCES
-    efl/DefaultTheme/default.edj
-    efl/EWebLauncher/main.c
-)
-
-SET(EWebLauncher_LIBRARIES
-    ${JavaScriptCore_LIBRARY_NAME}
-    ${WebCore_LIBRARY_NAME}
-    ${WebKit_LIBRARY_NAME}
-    ${Cairo_LIBRARIES}
-    ${ECORE_X_LIBRARIES}
-    ${EDJE_LIBRARIES}
-    ${EFLDEPS_LIBRARIES}
-    ${EVAS_LIBRARIES}
-    ${LIBXML2_LIBRARIES}
-    ${LIBXSLT_LIBRARIES}
-    ${SQLITE_LIBRARIES}
-)
-
-SET(EWebLauncher_LINK_FLAGS
-    ${ECORE_X_LDFLAGS}
-    ${EDJE_LDFLAGS}
-    ${EFLDEPS_LDFLAGS}
-    ${EVAS_LDFLAGS}
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_press_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_knob_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_fill_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/slider/slider_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/icon.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_normal_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_hover_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/combo/combo_press_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/search_decoration.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/decoration/decoration_normal_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_hovered.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/search_field.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_normal.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/field/field_focused.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/cancel_normal_button2.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/search/cancel/search_cancel.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/check.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_off.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/check/img_check_on.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/radio.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_off.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/radio/img_radio_on_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_normal.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_press.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/img_button_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/button/button.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/entry.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_normal.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_focused.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/entry/img_hovered.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_v.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar_knob_h.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/scrollbar/scrollbar.edc
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_normal.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_press.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_hover.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file_focus.png
+    ${WEBKIT_DIR}/efl/DefaultTheme/widget/file/file.edc
+  VERBATIM
 )
 
-IF (ENABLE_GLIB_SUPPORT)
-  LIST(APPEND EWebLauncher_LIBRARIES
-    ${Gdk_LIBRARIES}
-    ${Glib_LIBRARIES}
-    ${GTHREAD_LIBRARIES}
-  )
-ENDIF ()
-
-IF (WTF_USE_SOUP)
-  LIST(APPEND EWebLauncher_LIBRARIES ${LIBSOUP24_LIBRARIES})
-  LIST(APPEND EWebLauncher_LINK_FLAGS ${LIBSOUP24_LDFLAGS})
-ENDIF ()
-
-IF (WTF_USE_CURL)
-  LIST(APPEND EWebLauncher_LIBRARIES ${CURL_LIBRARIES})
-  LIST(APPEND EWebLauncher_LINK_FLAGS ${CURL_LDFLAGS})
-ENDIF ()
-
-ADD_EXECUTABLE(../Programs/EWebLauncher ${EWebLauncher_SOURCES})
-TARGET_LINK_LIBRARIES(../Programs/EWebLauncher ${EWebLauncher_LIBRARIES})
-ADD_TARGET_PROPERTIES(../Programs/EWebLauncher LINK_FLAGS "${EWebLauncher_LINK_FLAGS}")
-
 IF (SHARED_CORE)
     SET(LIBS_PRIVATE "-l${WTF_LIBRARY_NAME} -l${JavaScriptCore_LIBRARY_NAME} -l${WebCore_LIBRARY_NAME}")
 ELSE ()
@@ -146,4 +178,7 @@ FILE(GLOB EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/*.h")
 LIST(REMOVE_ITEM EWebKit_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_private.h")
 
 INSTALL(FILES ${EWebKit_HEADERS}
-        DESTINATION include/EWebKit)
+        DESTINATION include/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR})
+
+INSTALL(FILES ${WebKit_THEME}
+        DESTINATION share/${WebKit_LIBRARY_NAME}-${PROJECT_VERSION_MAJOR}/themes)