[GTK] [CMake] Build the WebKit2 GObject API tests
[WebKit-https.git] / Source / PlatformGTK.cmake
index 8af710001b2fd741a33b22e3b5d2ba3399eccb1d..390daffc22b7559bcf10a7db8f7036018b6c32e7 100644 (file)
@@ -1,18 +1,7 @@
-if (ENABLE_INSPECTOR)
-    add_custom_target(
-        web-inspector-resources ALL
-        COMMAND ${CMAKE_COMMAND} -E copy_directory ${WEBCORE_DIR}/inspector/front-end ${DATA_BUILD_DIR}/webinspector
-        COMMAND ${CMAKE_COMMAND} -E copy ${WEBCORE_DIR}/English.lproj/localizedStrings.js ${DATA_BUILD_DIR}/webinspector
-        COMMAND ${CMAKE_COMMAND} -E copy ${WEBKIT2_DIR}/UIProcess/InspectorServer/front-end/inspectorPageIndex.html ${DATA_BUILD_DIR}/webinspector
-        COMMAND ${CMAKE_COMMAND} -E copy ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendCommands.js ${DATA_BUILD_DIR}/webinspector
-        DEPENDS WebCore
-        WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
-    )
-    install(DIRECTORY "${DATA_BUILD_DIR}/webinspector"
-        DESTINATION "${DATA_INSTALL_DIR}/webinspector"
-        FILES_MATCHING PATTERN "*.js"
-                       PATTERN "*.html"
-                       PATTERN "*.css"
-                       PATTERN "*.gif"
-                       PATTERN "*.png")
+if (ENABLE_WEBKIT)
+    add_subdirectory(${WEBKIT_DIR}/gtk/tests)
+endif ()
+
+if (ENABLE_WEBKIT2)
+    add_subdirectory(${WEBKIT2_DIR}/UIProcess/API/gtk/tests)
 endif ()