2017-08-01 15:37:05 +02:00
|
|
|
import qbs
|
|
|
|
|
|
2020-01-08 10:14:24 +02:00
|
|
|
CppApplication {
|
2019-05-21 15:05:19 +02:00
|
|
|
@if "%{UseVirtualKeyboard}" == "true"
|
2019-06-26 16:38:41 +02:00
|
|
|
Depends { name: "Qt"; submodules: ["quick", "virtualkeyboard"] }
|
2019-05-21 15:05:19 +02:00
|
|
|
@else
|
2018-09-07 15:22:02 +02:00
|
|
|
Depends { name: "Qt.quick" }
|
2019-05-21 15:05:19 +02:00
|
|
|
@endif
|
2018-09-07 15:22:02 +02:00
|
|
|
|
|
|
|
|
// Additional import path used to resolve QML modules in Qt Creator's code model
|
|
|
|
|
property pathList qmlImportPaths: []
|
|
|
|
|
|
2019-04-25 17:35:22 +03:00
|
|
|
cpp.cxxLanguageVersion: "c++14"
|
2018-09-07 15:22:02 +02:00
|
|
|
|
|
|
|
|
cpp.defines: [
|
2020-06-24 12:24:27 +02:00
|
|
|
// You can make your code fail to compile if it uses deprecated APIs.
|
2018-09-07 15:22:02 +02:00
|
|
|
// In order to do so, uncomment the following line.
|
|
|
|
|
//"QT_DISABLE_DEPRECATED_BEFORE=0x060000" // disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
files: [
|
|
|
|
|
"%{MainCppFileName}",
|
|
|
|
|
"main.qml",
|
|
|
|
|
"qml.qrc",
|
2019-07-26 16:46:42 +02:00
|
|
|
@if %{HasTranslation}
|
|
|
|
|
"%{TsFileName}",
|
|
|
|
|
@endif
|
2018-09-07 15:22:02 +02:00
|
|
|
]
|
2021-01-11 16:50:34 +01:00
|
|
|
@if %{HasTranslation}
|
|
|
|
|
|
|
|
|
|
Group {
|
|
|
|
|
fileTagsFilter: "qm"
|
|
|
|
|
Qt.core.resourcePrefix: "/i18n"
|
|
|
|
|
fileTags: "qt.core.resource_data"
|
|
|
|
|
}
|
|
|
|
|
@endif
|
2018-09-07 15:22:02 +02:00
|
|
|
|
|
|
|
|
Group { // Properties for the produced executable
|
|
|
|
|
fileTagsFilter: "application"
|
|
|
|
|
qbs.install: true
|
|
|
|
|
qbs.installDir: "bin"
|
2017-08-01 15:37:05 +02:00
|
|
|
}
|
|
|
|
|
}
|