Property to enable building appimage.

This commit is contained in:
Roman Telezhynskyi 2023-01-10 19:35:39 +02:00
parent 282f9c789a
commit 89aab8cb92
6 changed files with 11 additions and 16 deletions

View file

@ -9,6 +9,11 @@ VApp {
installDir: buildconfig.installAppPath
installDebugInformation: true
Properties {
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
}
Group {
name: "freedesktop"
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())

View file

@ -20,6 +20,8 @@ Module {
// distributions which provides not enough space on build servers.
property bool enablePCH: true
property bool enableAppImage: false
Depends { name: "ccache"; }
// Use this property to disable the use of ccache.
@ -109,6 +111,9 @@ Module {
if (qbs.buildVariant !== "debug")
defines.push('V_NO_ASSERT');
if (enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos"))
defines.push('APPIMAGE');
return defines;
}

View file

@ -11,11 +11,6 @@ VToolApp {
Depends { name: "VWidgetsLib" }
Depends { name: "FervorLib" }
Properties {
condition: cpp.defines.contains("APPIMAGE")
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
}
name: "Puzzle"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Puzzle" : "puzzle"
targetName: buildconfig.appTarget

View file

@ -13,11 +13,6 @@ VToolApp {
Depends { name: "VWidgetsLib"; }
Depends { name: "VToolsLib"; }
Properties {
condition: cpp.defines.contains("APPIMAGE")
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
}
name: "Tape"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"
targetName: buildconfig.appTarget

View file

@ -21,11 +21,6 @@ VToolApp {
required: false
}
Properties {
condition: cpp.defines.contains("APPIMAGE")
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
}
name: "Valentina"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Valentina" : "valentina"
targetName: buildconfig.appTarget

View file

@ -44,7 +44,7 @@ VLib {
Group {
name: "AppImage"
condition: cpp.defines.contains("APPIMAGE")
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
files: [
"binreloc.h",
"appimage.h",