aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/artifactproperties.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2017-07-28 11:03:47 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-08-03 09:50:57 +0000
commitde14d18638b6aaf7c52847fec2e534f50c14b95d (patch)
tree5390e7258ba746e17ecf368e9bf94c45bb98ebcc /src/lib/corelib/language/artifactproperties.cpp
parenta567ece42d055f09a77efe8b16ea1a269b404765 (diff)
Make it possible to add file tags to generated artifacts
To add another file tag to an application one can write Group { fileTagsFilter: ["application"] fileTags: ["my_additional_tag"] } [ChangeLog] It is now possible to add file tags to generated artifacts by setting the fileTags property in a Group that has a fileTagsFilter. Change-Id: Iac977011073defd532d82f015d93970e27a66ba3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/language/artifactproperties.cpp')
-rw-r--r--src/lib/corelib/language/artifactproperties.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/corelib/language/artifactproperties.cpp b/src/lib/corelib/language/artifactproperties.cpp
index 00c7a2757..50fb732ab 100644
--- a/src/lib/corelib/language/artifactproperties.cpp
+++ b/src/lib/corelib/language/artifactproperties.cpp
@@ -56,18 +56,31 @@ ArtifactProperties::ArtifactProperties()
void ArtifactProperties::load(PersistentPool &pool)
{
pool.load(m_fileTagsFilter);
+ pool.load(m_extraFileTags);
pool.load(m_propertyMap);
}
void ArtifactProperties::store(PersistentPool &pool) const
{
pool.store(m_fileTagsFilter);
+ pool.store(m_extraFileTags);
pool.store(m_propertyMap);
}
+FileTags ArtifactProperties::extraFileTags() const
+{
+ return m_extraFileTags;
+}
+
+void ArtifactProperties::setExtraFileTags(const FileTags &extraFileTags)
+{
+ m_extraFileTags = extraFileTags;
+}
+
bool operator==(const ArtifactProperties &ap1, const ArtifactProperties &ap2)
{
return ap1.fileTagsFilter() == ap2.fileTagsFilter()
+ && ap1.extraFileTags() == ap2.extraFileTags()
&& *ap1.propertyMap() == *ap2.propertyMap();
}