aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-01-26 09:26:18 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-02-14 13:17:26 +0100
commit07d7df054082c39076c386645162592caff6f0c8 (patch)
tree007db147c3e65b8ce559c71b42c92009191a4c54
parent22a7259d2ed791a1382c59727afeba04cf72e2e5 (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> (cherry picked from commit 0aa6cafe81eb5cc80461e396751da81bb1db95b3) Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-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 "")