diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-07-12 13:29:45 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-07-12 18:16:25 +0000 |
commit | 72d56f1e95b87cf6983e0b348d7c05528d095f18 (patch) | |
tree | e180bbbcd65d654fc323412dc423fd93077fa3ca /share/share.qbs | |
parent | b689a16ae3adff29f8d8fcf4de305f9b1a67636f (diff) |
Remove support for in-build-dir-execution of the qbs qbs build
This is not supported. People must use the content of the installation
directory instead.
This reduces complexity of qbs' own project files.
Change-Id: I39f8bb4d5252b0631a64b3aac01f83b09b28ae0f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/share.qbs')
-rw-r--r-- | share/share.qbs | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/share/share.qbs b/share/share.qbs index 2d4b4532f..6c99f64d5 100644 --- a/share/share.qbs +++ b/share/share.qbs @@ -6,7 +6,7 @@ import qbs.Utilities Product { name: "qbs resources" - type: ["copied qbs resources", "qbs qml type descriptions", "qbs qml type bundle"] + type: ["qbs qml type descriptions", "qbs qml type bundle"] Depends { name: "qbsbuildconfig" } Group { @@ -65,31 +65,10 @@ Product { } Rule { - inputs: ["qbs resources"] - Artifact { - filePath: FileInfo.joinPaths( - project.buildDirectory, - input.moduleProperty("qbs", "installDir"), - FileInfo.relativePath(input.moduleProperty("qbs", "installSourceBase"), - input.filePath)) - fileTags: ["copied qbs resources"] - } - prepare: { - var cmd = new JavaScriptCommand(); - cmd.description = "Copying resource " + input.fileName + " to build directory."; - cmd.highlight = "codegen"; - cmd.sourceCode = function() { File.copy(input.filePath, output.filePath); } - return cmd; - } - } - - Rule { condition: Utilities.versionCompare(product.qbs.version, "1.9.1") >= 0 multiplex: true Artifact { - filePath: FileInfo.joinPaths( - project.buildDirectory, - product.qbsbuildconfig.qmlTypeDescriptionsInstallDir, "qbs.qmltypes") + filePath: "qbs.qmltypes" fileTags: ["qbs qml type descriptions"] } prepare: { @@ -114,9 +93,7 @@ Product { condition: Utilities.versionCompare(product.qbs.version, "1.9.1") >= 0 multiplex: true Artifact { - filePath: FileInfo.joinPaths( - project.buildDirectory, - product.qbsbuildconfig.qmlTypeDescriptionsInstallDir, "qbs-bundle.json") + filePath: "qbs-bundle.json" fileTags: ["qbs qml type bundle"] } prepare: { @@ -155,6 +132,6 @@ Product { name: "QML Type Info" fileTagsFilter: ["qbs qml type descriptions", "qbs qml type bundle"] qbs.install: true - qbs.installSourceBase: project.buildDirectory + qbs.installDir: qbsbuildconfig.qmlTypeDescriptionsInstallDir } } |