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
|
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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user