forked from qt-creator/qt-creator
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:
@@ -1,8 +1,6 @@
|
||||
import qbs
|
||||
|
||||
QtApplication {
|
||||
cpp.cxxLanguageVersion: "c++11"
|
||||
|
||||
cpp.defines: [
|
||||
// You can make your code fail to compile if it uses deprecated APIs.
|
||||
// In order to do so, uncomment the following line.
|
||||
@@ -10,6 +8,7 @@ QtApplication {
|
||||
]
|
||||
|
||||
consoleApplication: true
|
||||
install: true
|
||||
files: [
|
||||
"%{CppFileName}",
|
||||
@if %{HasTranslation}
|
||||
@@ -24,10 +23,4 @@ QtApplication {
|
||||
fileTags: "qt.core.resource_data"
|
||||
}
|
||||
@endif
|
||||
|
||||
Group { // Properties for the produced executable
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: "bin"
|
||||
}
|
||||
}
|
||||
|
@@ -2,11 +2,6 @@ import qbs
|
||||
|
||||
CppApplication {
|
||||
consoleApplication: true
|
||||
install: true
|
||||
files: "%{CFileName}"
|
||||
|
||||
Group { // Properties for the produced executable
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: "bin"
|
||||
}
|
||||
}
|
||||
|
@@ -2,11 +2,6 @@ import qbs
|
||||
|
||||
CppApplication {
|
||||
consoleApplication: true
|
||||
install: true
|
||||
files: "%{CppFileName}"
|
||||
|
||||
Group { // Properties for the produced executable
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: "bin"
|
||||
}
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ CppApplication {
|
||||
Depends { name: "Qt.quick" }
|
||||
@endif
|
||||
|
||||
install: true
|
||||
|
||||
// Additional import path used to resolve QML modules in Qt Creator's code model
|
||||
property pathList qmlImportPaths: []
|
||||
@if !%{IsQt6}
|
||||
@@ -43,9 +45,4 @@ CppApplication {
|
||||
fileTags: ["qt.qml.qml", "qt.core.resource_data"]
|
||||
}
|
||||
@endif
|
||||
Group { // Properties for the produced executable
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: "bin"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user