valentina/qbs/imports/VToolApp.qbs

39 lines
1.2 KiB
QML
Raw Normal View History

2023-01-11 12:03:32 +01:00
import qbs.FileInfo
2023-01-10 09:39:50 +01:00
VApp {
2023-01-11 12:03:32 +01:00
Depends { name: "freedesktop2" }
Depends { name: "tenv" }
2023-01-11 12:03:32 +01:00
2023-01-10 09:39:50 +01:00
version: "0.7.52"
install: true
installDir: buildconfig.installAppPath
installDebugInformation: true
2023-01-11 12:03:32 +01:00
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") && qbs.buildVariant == "debug"
bundle.isBundle: false
}
2023-01-10 18:35:39 +01:00
Properties {
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
}
2023-01-11 12:03:32 +01:00
Group {
name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
files: [
product.targetName + ".desktop"
]
}
freedesktop2.desktopKeys: ({
'Exec': FileInfo.joinPaths(qbs.installPrefix,
product.installDir,
product.targetName) + ' %F',
'X-Application-Version': product.version,
})
2023-01-10 09:39:50 +01:00
}