Fix build on Linux.
This commit is contained in:
parent
8b42f12a20
commit
4dd424262e
|
@ -3,7 +3,7 @@ import qbs.Utilities
|
|||
|
||||
CppApplication {
|
||||
Depends { name: "buildconfig" }
|
||||
Depends { name: "bundle" }
|
||||
Depends { name: "bundle"; condition: qbs.targetOS.contains("macos") }
|
||||
|
||||
Properties {
|
||||
condition: qbs.targetOS.contains("macos")
|
||||
|
|
|
@ -2,13 +2,12 @@ import qbs.FileInfo
|
|||
|
||||
Library {
|
||||
Depends { name: "buildconfig" }
|
||||
Depends { name: "bundle" }
|
||||
Depends { name: "bundle"; condition: qbs.targetOS.contains("macos") }
|
||||
Depends { name: "cpp" }
|
||||
|
||||
type: buildconfig.staticBuild ? "staticlibrary" : "dynamiclibrary"
|
||||
|
||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Valentina" : "valentina"
|
||||
bundle.isBundle: buildconfig.frameworksBuild
|
||||
cpp.includePaths: [".."]
|
||||
|
||||
// Allow MAC OS X to find library inside a bundle
|
||||
|
@ -30,5 +29,6 @@ Library {
|
|||
Properties {
|
||||
condition: qbs.targetOS.contains("macos")
|
||||
cpp.minimumMacosVersion: buildconfig.minimumMacosVersion
|
||||
bundle.isBundle: buildconfig.frameworksBuild
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
VApp {
|
||||
type: base.concat("autotest")
|
||||
bundle.isBundle: false
|
||||
install: false
|
||||
condition: buildconfig.enableUnitTests
|
||||
|
||||
Properties {
|
||||
condition: qbs.targetOS.contains("macos")
|
||||
bundle.isBundle: false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ VApp {
|
|||
installDir: buildconfig.installBinaryPath
|
||||
installDebugInformation: qbs.buildVariant !== "release"
|
||||
consoleApplication: false
|
||||
bundle.isBundle: qbs.buildVariant === "release"
|
||||
|
||||
bundle.identifierPrefix: 'ua.com.smart-pattern'
|
||||
|
||||
property bool primaryApp: false
|
||||
|
@ -24,6 +24,13 @@ VApp {
|
|||
"NSHumanReadableCopyright": buildconfig.valentina_copyright_string
|
||||
})
|
||||
|
||||
Properties {
|
||||
// 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.
|
||||
condition: qbs.targetOS.contains("macos")
|
||||
bundle.isBundle: qbs.buildVariant === "release"
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
|
||||
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
|
||||
|
@ -202,7 +209,7 @@ VApp {
|
|||
}
|
||||
|
||||
Properties {
|
||||
condition: i18nconfig.limitDeploymentOfQtTranslations
|
||||
condition: qbs.targetOS.contains("windows") && i18nconfig.limitDeploymentOfQtTranslations
|
||||
windeployqt.languages: i18nconfig.qtTranslationLocales.join(',')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user