[EFL][WK2] Add Remote Web Inspector
[WebKit-https.git] / Source / PlatformEfl.cmake
index 5406615fd8c5029746ba1da77027eddea0e54e0a..6532faa9ae2f3200b4296c715bb8db50ebe97f4c 100644 (file)
@@ -1 +1,20 @@
-ADD_SUBDIRECTORY(${WEBKIT_DIR}/efl/DefaultTheme)
+add_subdirectory(${WEBKIT_DIR}/efl/DefaultTheme)
+
+if (ENABLE_INSPECTOR)
+    add_custom_target(
+        web-inspector-resources ALL
+        COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${WEB_INSPECTOR_DIR}
+        COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${WEB_INSPECTOR_DIR}
+        COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${WEB_INSPECTOR_DIR}
+        COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${WEB_INSPECTOR_DIR}
+        DEPENDS ${WebCore_LIBRARY_NAME}
+        WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+    )
+    install(DIRECTORY "${CMAKE_BINARY_DIR}/${WEB_INSPECTOR_DIR}"
+        DESTINATION ${DATA_INSTALL_DIR}
+        FILES_MATCHING PATTERN "*.js"
+                       PATTERN "*.html"
+                       PATTERN "*.css"
+                       PATTERN "*.gif"
+                       PATTERN "*.png")
+endif ()