aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
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 12:19:59 +0100
commite29b1fd31c9591ada3dcce6ba0b13a66871d13db (patch)
tree03d8612efa48675c4c39c462a254b64e0daca09c /cmake
parent64df54dd89341ee7557f01899928bcae50a54be7 (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)
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 "")