[GTK] Do not generate webkit2gtk-tests-resources.gresource unconditionally
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Oct 2014 07:46:42 +0000 (07:46 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 4 Oct 2014 07:46:42 +0000 (07:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137391

Reviewed by Martin Robinson.

Add a custom command to only re-generate
webkit2gtk-tests-resources.gresource when any of its dependencies changes.

* TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174310 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt

index 365a24c7bed31109b944ddff5f6c3e2858c110ff..8b893f711adc4f26164f805f16b923398c7464af 100644 (file)
@@ -1,3 +1,15 @@
+2014-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK] Do not generate webkit2gtk-tests-resources.gresource unconditionally
+        https://bugs.webkit.org/show_bug.cgi?id=137391
+
+        Reviewed by Martin Robinson.
+
+        Add a custom command to only re-generate
+        webkit2gtk-tests-resources.gresource when any of its dependencies changes.
+
+        * TestWebKitAPI/Tests/WebKit2Gtk/CMakeLists.txt:
+
 2014-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] generate-gtkdoc crashes when generating HTML due to encoding issues
index 1a2f9d2424c2a0a8b2ab7ccc1c26cbb8b2b7e908..a9c1d64ced9b8fac07ae1b3bd4acd0e09bab3a3e 100644 (file)
@@ -38,7 +38,8 @@ add_library(WebKit2APITestCore STATIC
 )
 target_link_libraries(WebKit2APITestCore WebKit2)
 
-add_custom_target(test-gresource-bundle
+add_custom_command(
+    OUTPUT ${TEST_RESOURCES_DIR}/webkit2gtk-tests-resources.gresource
     DEPENDS resources/webkit2gtk-tests.gresource.xml
             resources/link-title.js
     COMMAND glib-compile-resources
@@ -47,6 +48,10 @@ add_custom_target(test-gresource-bundle
             ${CMAKE_CURRENT_LIST_DIR}/resources/webkit2gtk-tests.gresource.xml
 )
 
+add_custom_target(test-gresource-bundle
+    DEPENDS ${TEST_RESOURCES_DIR}/webkit2gtk-tests-resources.gresource
+)
+
 macro(ADD_WK2_TEST_WEB_EXTENSION extension_name)
     add_library(${extension_name} MODULE ${ARGN})
     add_dependencies(${extension_name} WebKit2)