Wizards: Modernize qbs project templates

Change-Id: Ib6f6315f9730425d4fd3b566f66ed26aa1718695
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2022-02-03 12:18:09 +01:00
parent 9bc9fb5a0d
commit b243a8d728
4 changed files with 5 additions and 25 deletions

View File

@@ -1,8 +1,6 @@
import qbs import qbs
QtApplication { QtApplication {
cpp.cxxLanguageVersion: "c++11"
cpp.defines: [ cpp.defines: [
// You can make your code fail to compile if it uses deprecated APIs. // You can make your code fail to compile if it uses deprecated APIs.
// In order to do so, uncomment the following line. // In order to do so, uncomment the following line.
@@ -10,6 +8,7 @@ QtApplication {
] ]
consoleApplication: true consoleApplication: true
install: true
files: [ files: [
"%{CppFileName}", "%{CppFileName}",
@if %{HasTranslation} @if %{HasTranslation}
@@ -24,10 +23,4 @@ QtApplication {
fileTags: "qt.core.resource_data" fileTags: "qt.core.resource_data"
} }
@endif @endif
Group { // Properties for the produced executable
fileTagsFilter: "application"
qbs.install: true
qbs.installDir: "bin"
}
} }

View File

@@ -2,11 +2,6 @@ import qbs
CppApplication { CppApplication {
consoleApplication: true consoleApplication: true
install: true
files: "%{CFileName}" files: "%{CFileName}"
Group { // Properties for the produced executable
fileTagsFilter: "application"
qbs.install: true
qbs.installDir: "bin"
}
} }

View File

@@ -2,11 +2,6 @@ import qbs
CppApplication { CppApplication {
consoleApplication: true consoleApplication: true
install: true
files: "%{CppFileName}" files: "%{CppFileName}"
Group { // Properties for the produced executable
fileTagsFilter: "application"
qbs.install: true
qbs.installDir: "bin"
}
} }

View File

@@ -7,6 +7,8 @@ CppApplication {
Depends { name: "Qt.quick" } Depends { name: "Qt.quick" }
@endif @endif
install: true
// Additional import path used to resolve QML modules in Qt Creator's code model // Additional import path used to resolve QML modules in Qt Creator's code model
property pathList qmlImportPaths: [] property pathList qmlImportPaths: []
@if !%{IsQt6} @if !%{IsQt6}
@@ -43,9 +45,4 @@ CppApplication {
fileTags: ["qt.qml.qml", "qt.core.resource_data"] fileTags: ["qt.qml.qml", "qt.core.resource_data"]
} }
@endif @endif
Group { // Properties for the produced executable
fileTagsFilter: "application"
qbs.install: true
qbs.installDir: "bin"
}
} }