Fix build on Windows.

This commit is contained in:
Roman Telezhynskyi 2023-01-28 16:57:32 +02:00
parent 4dd424262e
commit 5fa48e52c4
2 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,10 @@ VLib {
windeployqt.noVirtualkeyboard: true windeployqt.noVirtualkeyboard: true
bundle.identifierPrefix: 'ua.com.smart-pattern' Properties {
condition: qbs.targetOS.contains("macos")
bundle.identifierPrefix: 'ua.com.smart-pattern'
}
Properties { Properties {
condition: i18nconfig.limitDeploymentOfQtTranslations condition: i18nconfig.limitDeploymentOfQtTranslations

View File

@ -16,19 +16,17 @@ VApp {
installDebugInformation: qbs.buildVariant !== "release" installDebugInformation: qbs.buildVariant !== "release"
consoleApplication: false consoleApplication: false
bundle.identifierPrefix: 'ua.com.smart-pattern'
property bool primaryApp: false property bool primaryApp: false
bundle.infoPlist:({
"NSHumanReadableCopyright": buildconfig.valentina_copyright_string
})
Properties { Properties {
condition: qbs.targetOS.contains("macos")
// Breakpoints do not work if debug the app inside of bundle. In debug mode we turn off creating a bundle. // Breakpoints do not work if debug the app inside of bundle. In debug mode we turn off creating a bundle.
// Probably it will breake some dependencies. Version for Mac designed to work inside an app bundle. // Probably it will breake some dependencies. Version for Mac designed to work inside an app bundle.
condition: qbs.targetOS.contains("macos")
bundle.isBundle: qbs.buildVariant === "release" bundle.isBundle: qbs.buildVariant === "release"
bundle.identifierPrefix: 'ua.com.smart-pattern'
bundle.infoPlist:({
"NSHumanReadableCopyright": buildconfig.valentina_copyright_string
})
} }
Properties { Properties {
@ -76,7 +74,7 @@ VApp {
} }
Group { Group {
condition: !qbs.targetOS.contains("macos") || (qbs.targetOS.contains("macos") && !bundle.isBundle) condition: product.primaryApp || (qbs.targetOS.contains("macos") && (!bundle.isBundle || (bundle.isBundle && buildconfig.enableMultiBundle)))
fileTagsFilter: "qm" fileTagsFilter: "qm"
qbs.install: true qbs.install: true
qbs.installDir: buildconfig.installDataPath + "/translations" qbs.installDir: buildconfig.installDataPath + "/translations"