forked from qt-creator/qt-creator
qbs build: Enable the vcs module only for commercial plugins
The other ones are in the Qt Creator source tree and should not get rebuilt on repo metadata changes, because they do not make use of QTC_PLUGIN_REVISION. Change-Id: I216a89de4411948b7ccad65f883d0d8782a283d4 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -3,4 +3,5 @@ import qbs
|
|||||||
QtcPlugin {
|
QtcPlugin {
|
||||||
Depends { name: "LicenseChecker"; required: false }
|
Depends { name: "LicenseChecker"; required: false }
|
||||||
cpp.defines: base.concat(LicenseChecker.present ? ["LICENSECHECKER"] : [])
|
cpp.defines: base.concat(LicenseChecker.present ? ["LICENSECHECKER"] : [])
|
||||||
|
pluginjson.useVcsData: true
|
||||||
}
|
}
|
||||||
|
@@ -17,6 +17,7 @@ QtcProduct {
|
|||||||
|
|
||||||
Depends { name: "ExtensionSystem" }
|
Depends { name: "ExtensionSystem" }
|
||||||
Depends { name: "pluginjson" }
|
Depends { name: "pluginjson" }
|
||||||
|
pluginjson.useVcsData: false
|
||||||
Depends {
|
Depends {
|
||||||
condition: qtc.testsEnabled
|
condition: qtc.testsEnabled
|
||||||
name: "Qt.testlib"
|
name: "Qt.testlib"
|
||||||
|
@@ -10,9 +10,10 @@ Module {
|
|||||||
|
|
||||||
// TODO: Wrap the VCS specific stuff in a dedicated module
|
// TODO: Wrap the VCS specific stuff in a dedicated module
|
||||||
property bool hasVcs: Utilities.versionCompare(qbs.version, "1.10") >= 0
|
property bool hasVcs: Utilities.versionCompare(qbs.version, "1.10") >= 0
|
||||||
Depends { name: "vcs"; condition: hasVcs }
|
property bool useVcsData: hasVcs
|
||||||
|
Depends { name: "vcs"; condition: useVcsData }
|
||||||
Properties {
|
Properties {
|
||||||
condition: hasVcs
|
condition: useVcsData
|
||||||
vcs.headerFileName: undefined
|
vcs.headerFileName: undefined
|
||||||
vcs.repoDir: {
|
vcs.repoDir: {
|
||||||
// TODO: Could something like this be incorporated into the vcs module?
|
// TODO: Could something like this be incorporated into the vcs module?
|
||||||
|
Reference in New Issue
Block a user