Property to enable building appimage.
This commit is contained in:
parent
282f9c789a
commit
89aab8cb92
|
@ -9,6 +9,11 @@ VApp {
|
||||||
installDir: buildconfig.installAppPath
|
installDir: buildconfig.installAppPath
|
||||||
installDebugInformation: true
|
installDebugInformation: true
|
||||||
|
|
||||||
|
Properties {
|
||||||
|
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
|
||||||
|
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
|
||||||
|
}
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "freedesktop"
|
name: "freedesktop"
|
||||||
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
|
prefix: FileInfo.joinPaths(project.sourceDirectory, "dist", FileInfo.pathSeparator())
|
||||||
|
|
|
@ -20,6 +20,8 @@ Module {
|
||||||
// distributions which provides not enough space on build servers.
|
// distributions which provides not enough space on build servers.
|
||||||
property bool enablePCH: true
|
property bool enablePCH: true
|
||||||
|
|
||||||
|
property bool enableAppImage: false
|
||||||
|
|
||||||
Depends { name: "ccache"; }
|
Depends { name: "ccache"; }
|
||||||
|
|
||||||
// Use this property to disable the use of ccache.
|
// Use this property to disable the use of ccache.
|
||||||
|
@ -109,6 +111,9 @@ Module {
|
||||||
if (qbs.buildVariant !== "debug")
|
if (qbs.buildVariant !== "debug")
|
||||||
defines.push('V_NO_ASSERT');
|
defines.push('V_NO_ASSERT');
|
||||||
|
|
||||||
|
if (enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos"))
|
||||||
|
defines.push('APPIMAGE');
|
||||||
|
|
||||||
return defines;
|
return defines;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,6 @@ VToolApp {
|
||||||
Depends { name: "VWidgetsLib" }
|
Depends { name: "VWidgetsLib" }
|
||||||
Depends { name: "FervorLib" }
|
Depends { name: "FervorLib" }
|
||||||
|
|
||||||
Properties {
|
|
||||||
condition: cpp.defines.contains("APPIMAGE")
|
|
||||||
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
|
|
||||||
}
|
|
||||||
|
|
||||||
name: "Puzzle"
|
name: "Puzzle"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Puzzle" : "puzzle"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Puzzle" : "puzzle"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
|
|
|
@ -13,11 +13,6 @@ VToolApp {
|
||||||
Depends { name: "VWidgetsLib"; }
|
Depends { name: "VWidgetsLib"; }
|
||||||
Depends { name: "VToolsLib"; }
|
Depends { name: "VToolsLib"; }
|
||||||
|
|
||||||
Properties {
|
|
||||||
condition: cpp.defines.contains("APPIMAGE")
|
|
||||||
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
|
|
||||||
}
|
|
||||||
|
|
||||||
name: "Tape"
|
name: "Tape"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
|
|
|
@ -21,11 +21,6 @@ VToolApp {
|
||||||
required: false
|
required: false
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties {
|
|
||||||
condition: cpp.defines.contains("APPIMAGE")
|
|
||||||
cpp.dynamicLibraries: ["icudata", "icui18n", "icuuc"]
|
|
||||||
}
|
|
||||||
|
|
||||||
name: "Valentina"
|
name: "Valentina"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Valentina" : "valentina"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Valentina" : "valentina"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
|
|
|
@ -44,7 +44,7 @@ VLib {
|
||||||
|
|
||||||
Group {
|
Group {
|
||||||
name: "AppImage"
|
name: "AppImage"
|
||||||
condition: cpp.defines.contains("APPIMAGE")
|
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
|
||||||
files: [
|
files: [
|
||||||
"binreloc.h",
|
"binreloc.h",
|
||||||
"appimage.h",
|
"appimage.h",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user