Property to enable building appimage.
This commit is contained in:
parent
282f9c789a
commit
89aab8cb92
|
@ -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())
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user