[EFL][WK2] Add RunLoopEfl and WorkQueueEfl
[WebKit-https.git] / Source / WebKit2 / PlatformEfl.cmake
index 1591dfbbc2688be15e749d8fc19217da099ee774..9a1f09b4b6f49ad727874df51155262398702255 100644 (file)
@@ -1,5 +1,3 @@
-INCLUDE(WebKitEfl)
-
 LIST(APPEND WebKit2_LINK_FLAGS
     ${ECORE_X_LDFLAGS}
     ${EDJE_LDFLAGS}
 LIST(APPEND WebKit2_LINK_FLAGS
     ${ECORE_X_LDFLAGS}
     ${EDJE_LDFLAGS}
@@ -9,7 +7,6 @@ LIST(APPEND WebKit2_LINK_FLAGS
 
 LIST(APPEND WebKit2_SOURCES
     Platform/efl/ModuleEfl.cpp
 
 LIST(APPEND WebKit2_SOURCES
     Platform/efl/ModuleEfl.cpp
-    Platform/efl/RunLoopEfl.cpp
     Platform/efl/WorkQueueEfl.cpp
     Platform/unix/SharedMemoryUnix.cpp
 
     Platform/efl/WorkQueueEfl.cpp
     Platform/unix/SharedMemoryUnix.cpp
 
@@ -44,7 +41,10 @@ LIST(APPEND WebKit2_SOURCES
     UIProcess/Plugins/efl/PluginInfoStoreEfl.cpp
     UIProcess/Plugins/efl/PluginProcessProxyEfl.cpp
 
     UIProcess/Plugins/efl/PluginInfoStoreEfl.cpp
     UIProcess/Plugins/efl/PluginProcessProxyEfl.cpp
 
+    WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
+
     WebProcess/Downloads/efl/DownloadEfl.cpp
     WebProcess/Downloads/efl/DownloadEfl.cpp
+    WebProcess/Downloads/efl/FileDownloaderEfl.cpp
 
     WebProcess/efl/WebProcessEfl.cpp
     WebProcess/efl/WebProcessMainEfl.cpp
 
     WebProcess/efl/WebProcessEfl.cpp
     WebProcess/efl/WebProcessMainEfl.cpp
@@ -61,10 +61,13 @@ LIST(APPEND WebKit2_SOURCES
 )
 
 LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
 )
 
 LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
+    "${JAVASCRIPTCORE_DIR}/wtf/gobject"
     "${WEBCORE_DIR}/platform/efl"
     "${WEBCORE_DIR}/platform/graphics/cairo"
     "${WEBCORE_DIR}/platform/efl"
     "${WEBCORE_DIR}/platform/graphics/cairo"
+    "${WEBCORE_DIR}/platform/network/soup"
     "${WEBKIT2_DIR}/Shared/efl"
     "${WEBKIT2_DIR}/UIProcess/API/efl/"
     "${WEBKIT2_DIR}/Shared/efl"
     "${WEBKIT2_DIR}/UIProcess/API/efl/"
+    "${WEBKIT2_DIR}/WebProcess/Downloads/efl"
     "${WEBKIT2_DIR}/WebProcess/efl"
     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
     ${Cairo_INCLUDE_DIRS}
     "${WEBKIT2_DIR}/WebProcess/efl"
     "${WEBKIT2_DIR}/WebProcess/WebCoreSupport/efl"
     ${Cairo_INCLUDE_DIRS}
@@ -75,6 +78,8 @@ LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
     ${LIBXML2_INCLUDE_DIR}
     ${LIBXSLT_INCLUDE_DIRS}
     ${SQLITE_INCLUDE_DIRS}
     ${LIBXML2_INCLUDE_DIR}
     ${LIBXSLT_INCLUDE_DIRS}
     ${SQLITE_INCLUDE_DIRS}
+    ${Glib_INCLUDE_DIRS}
+    ${LIBSOUP24_INCLUDE_DIRS}
 )
 
 LIST(APPEND WebKit2_LIBRARIES
 )
 
 LIST(APPEND WebKit2_LIBRARIES
@@ -88,6 +93,8 @@ LIST(APPEND WebKit2_LIBRARIES
     ${PNG_LIBRARY}
     ${JPEG_LIBRARY}
     ${CMAKE_DL_LIBS}
     ${PNG_LIBRARY}
     ${JPEG_LIBRARY}
     ${CMAKE_DL_LIBS}
+    ${Glib_LIBRARIES}
+    ${LIBSOUP24_LIBRARIES}
 )
 
 LIST (APPEND WebProcess_SOURCES
 )
 
 LIST (APPEND WebProcess_SOURCES
@@ -110,39 +117,7 @@ ADD_CUSTOM_TARGET(forwarding-headerEfl
 )
 SET(ForwardingHeaders_NAME forwarding-headerEfl)
 
 )
 SET(ForwardingHeaders_NAME forwarding-headerEfl)
 
-IF (WTF_USE_SOUP)
-    LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
-        "${WEBCORE_DIR}/platform/network/soup"
-        ${LIBSOUP24_INCLUDE_DIRS}
-    )
-    LIST(APPEND WebKit2_LIBRARIES ${LIBSOUP24_LIBRARIES})
-    LIST(APPEND WebKit2_SOURCES
-        WebProcess/Cookies/soup/WebCookieManagerSoup.cpp
-    )
-
-    ADD_CUSTOM_TARGET(forwarding-headerSoup
-        COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
-    )
-    SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)
-ENDIF ()
-
-IF (WTF_USE_CURL)
-    LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
-        "${WEBCORE_DIR}/platform/network/curl"
-        ${CURL_INCLUDE_DIRS}
-    )
-    LIST(APPEND WebKit2_LIBRARIES ${CURL_LIBRARIES})
-    LIST(APPEND WebKit2_SOURCES
-        WebProcess/Cookies/curl/WebCookieManagerCurl.cpp
-    )
-ENDIF ()
-
-IF (ENABLE_GLIB_SUPPORT)
-    LIST(APPEND WebKit2_INCLUDE_DIRECTORIES
-        ${Glib_INCLUDE_DIRS}
-        ${JAVASCRIPTCORE_DIR}/wtf/gobject
-    )
-    LIST(APPEND WebKit2_LIBRARIES
-        ${Glib_LIBRARIES}
-    )
-ENDIF ()
+ADD_CUSTOM_TARGET(forwarding-headerSoup
+    COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include soup
+)
+SET(ForwardingNetworkHeaders_NAME forwarding-headerSoup)