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" }
|
2023-01-11 13:02:35 +01:00
|
|
|
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
|
|
|
|
2023-01-11 13:02:35 +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"
|
2023-01-17 11:00:35 +01:00
|
|
|
prefix: project.sourceDirectory + "/dist/"
|
2023-01-11 12:03:32 +01:00
|
|
|
files: [
|
2023-01-13 16:12:13 +01:00
|
|
|
"ua.com.smart-pattern." + product.targetName + ".desktop"
|
2023-01-11 12:03:32 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
freedesktop2.desktopKeys: ({
|
|
|
|
'Exec': FileInfo.joinPaths(qbs.installPrefix,
|
|
|
|
product.installDir,
|
|
|
|
product.targetName) + ' %F',
|
|
|
|
'X-Application-Version': product.version,
|
|
|
|
})
|
2023-01-11 14:08:32 +01:00
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Translations"
|
2023-01-17 11:00:35 +01:00
|
|
|
prefix: project.sourceDirectory + "/share/translations/"
|
2023-01-11 14:08:32 +01:00
|
|
|
files: {
|
|
|
|
var files = [];
|
|
|
|
|
|
|
|
var locales = [
|
|
|
|
"uk_UA",
|
|
|
|
"de_DE",
|
|
|
|
"cs_CZ",
|
|
|
|
"he_IL",
|
|
|
|
"fr_FR",
|
|
|
|
"it_IT",
|
|
|
|
"nl_NL",
|
|
|
|
"id_ID",
|
|
|
|
"es_ES",
|
|
|
|
"fi_FI",
|
|
|
|
"en_US",
|
|
|
|
"en_CA",
|
|
|
|
"en_IN",
|
|
|
|
"ro_RO",
|
|
|
|
"zh_CN",
|
|
|
|
"pt_BR",
|
|
|
|
"el_GR",
|
|
|
|
"pl_PL"
|
|
|
|
];
|
|
|
|
|
|
|
|
for (var i = 0; i < locales.length; i++) {
|
|
|
|
files.push("valentina_" + locales[i] + ".ts");
|
|
|
|
}
|
|
|
|
|
|
|
|
var pmSystems = [
|
|
|
|
"p0", "p1", "p2", "p3", "p4", "p5", "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15",
|
|
|
|
"p16", "p17", "p18", "p19", "p20", "p21", "p22", "p23", "p24", "p25", "p26", "p27", "p28", "p29",
|
|
|
|
"p30", "p31", "p32", "p33", "p34", "p35", "p36", "p37", "p38", "p39", "p40", "p41", "p42", "p43",
|
|
|
|
"p44", "p45", "p46", "p47", "p48", "p49", "p50", "p51", "p52", "p53", "p54", "p998"
|
|
|
|
]
|
|
|
|
|
|
|
|
for (var i = 0; i < pmSystems.length; i++) {
|
|
|
|
files.push("measurements_" + pmSystems[i] + ".ts");
|
|
|
|
for (var j = 0; j < locales.length; j++) {
|
|
|
|
files.push("measurements_" + pmSystems[i] + "_" + locales[j] + ".ts");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return files;
|
|
|
|
}
|
|
|
|
}
|
2023-01-10 09:39:50 +01:00
|
|
|
}
|