summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIikka Eklund <iikka.eklund@qt.io>2021-03-04 09:32:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-15 12:27:28 +0000
commit406877f4f9c58000a2c3814b3e7a8674834fafa1 (patch)
treed76165e6edd77e809e5596dab29f7a20f9497dcc
parente9af7792a42440c539ef0ddcf8cadc9e5152c1c2 (diff)
Add "scm" attribute to conanfile.py
We want to match the commit ID along with the RREV (recipe revision). This way we can pin exact Conan packages to known sha1/tag which makes releasing easier. https://docs.conan.io/en/latest/reference/conanfile/attributes.html#revision-mode Task-number: QTQAINFRA-4325 Change-Id: I33095ecd14ce711516d5a13d70ffabf444c67392 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> (cherry picked from commit 4d60c670ab2155332bfca799e1f5205273c0bc8e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--conanfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
index 9b4d2d8fc..6a6afd3ec 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -48,6 +48,7 @@ class Qt3D(ConanFile):
default_options = {"shared": "default", # default: Use the value of the Qt build
"qt6": None}
exports_sources = "*", "!conan*.*"
+ revision_mode = "scm" # use commit ID as the RREV (recipe revision)
def source(self):
# sources are installed next to recipe, no need to clone etc. sources here