aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-01-26 09:26:18 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-01-26 11:18:54 +0100
commit0aa6cafe81eb5cc80461e396751da81bb1db95b3 (patch)
tree2aa8dc3a9870b2ba32a2d1b2ceab8ab47c7632c5 /cmake
parentf03f6eec9ac6467cdf601a8c056e76b3905472f3 (diff)
Restore comment describing how the compile hash works
This is really useful information and had to be painstakingly re-discovered. Task-number: QTBUG-99608 Change-Id: I21f7fc56745c9fb979f61710bebd8ad83e702cc4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtDeclarativeSetup.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake
index aeb61d70e4..479c71d28a 100644
--- a/cmake/QtDeclarativeSetup.cmake
+++ b/cmake/QtDeclarativeSetup.cmake
@@ -1,4 +1,8 @@
-# Generates a header file with a hash.
+# Create a header containing a hash that describes this library. For a
+# released version of Qt, we'll use the .tag file that is updated by git
+# archive with the tree hash. For unreleased versions, we'll ask git
+# rev-parse. If none of this works, we use CMake to hash all the files
+# in the src/qml/ directory.
function(qt_declarative_write_tag_header target_name)
set(tag_file "${CMAKE_CURRENT_SOURCE_DIR}/../../.tag")
set(tag_contents "")