Because of code signing we cannot copy debug symbols on macos inside a bundle. Code signing happens before we upload them on server and remove.

This commit is contained in:
Roman Telezhynskyi 2024-04-03 17:48:27 +03:00
parent 816351564a
commit d1567560d9
3 changed files with 17 additions and 0 deletions

View File

@ -39,6 +39,11 @@ VLib {
installDebugInformation: qbs.buildVariant !== "release" || (buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled)
Properties {
condition: qbs.targetOS.contains("macos") && (buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled)
debugInformationInstallDir: buildconfig.debugInformationInstallPath
}
Properties {
condition: !qbs.targetOS.contains("macos") || (qbs.targetOS.contains("macos") && !buildconfig.enableMultiBundle)
install: true

View File

@ -17,6 +17,11 @@ VApp {
property bool primaryApp: false
Properties {
condition: qbs.targetOS.contains("macos") && (buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled)
debugInformationInstallDir: buildconfig.debugInformationInstallPath
}
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.

View File

@ -74,6 +74,13 @@ Module {
return "bin";
}
readonly property string debugInformationInstallPath: {
if (qbs.targetOS.contains("macos"))
return installAppPath + "/" + appTarget + "_dSYM"
else
return product.installDir
}
readonly property string installBinaryPath: {
if (qbs.targetOS.contains("macos"))
return installAppPath + "/" + appTarget + ".app/Contents/MacOS"