CMake should reconfigure if the Sources.txt files are touched
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 22:34:31 +0000 (22:34 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Sep 2017 22:34:31 +0000 (22:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=177508

Reviewed by JF Bastien.

* Source/cmake/WebKitMacros.cmake:

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

ChangeLog
Source/cmake/WebKitMacros.cmake

index d64b2c5..26ea7f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-09-26  Keith Miller  <keith_miller@apple.com>
+
+        CMake should reconfigure if the Sources.txt files are touched
+        https://bugs.webkit.org/show_bug.cgi?id=177508
+
+        Reviewed by JF Bastien.
+
+        * Source/cmake/WebKitMacros.cmake:
+
 2017-09-24  Keith Miller  <keith_miller@apple.com>
 
         JSC build should use unified sources for derived sources
index 8f4ac81..0ab4184 100644 (file)
@@ -3,9 +3,11 @@
 # WebCore), then put it there instead.
 
 macro(WEBKIT_COMPUTE_SOURCES _framework)
+    configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Sources.txt" "${DERIVED_SOURCES_DIR}/${_framework}/Sources.txt" COPYONLY)
     set(_platformSourcesFile ${CMAKE_CURRENT_SOURCE_DIR}/Sources${PORT}.txt)
     if (EXISTS ${_platformSourcesFile})
         message(STATUS "Using platform specific source list file: ${_platformSourcesFile}")
+        configure_file("${_platformSourcesFile}" "${DERIVED_SOURCES_DIR}/${_framework}/${_platformSourcesFile}" COPYONLY)
     else ()
         unset(_platformSourcesFile)
     endif ()