valentina/valentina.qbs

41 lines
1.0 KiB
QML
Raw Normal View History

2023-02-13 18:59:07 +01:00
import qbs.Probes
2023-01-04 17:31:50 +01:00
Project {
name: "Valentina"
minimumQbsVersion: "1.16"
2023-02-13 18:59:07 +01:00
property bool enableConan: false
Probes.ConanfileProbe {
id: thirdPartyConanPackages
condition: enableConan
conanfilePath: project.sourceDirectory + "/conanfile.txt"
options: {
if (qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos"))
return ({"xerces-c:shared": "False"});
return ({"xerces-c:shared": "True"});
}
}
2023-01-04 17:31:50 +01:00
references: [
"src/src.qbs",
2023-01-12 17:33:39 +01:00
"share/translations/translations.qbs",
"share/translations/measurements.qbs",
2023-01-04 17:31:50 +01:00
]
qbsSearchPaths: "qbs"
AutotestRunner {
Depends { name: "buildconfig" }
environment: {
var env = base;
if (qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")) {
env.push("LD_LIBRARY_PATH=" + qbs.installRoot + qbs.installPrefix + "/" + buildconfig.libDirName + "/valentina");
}
return env;
}
}
2023-01-04 17:31:50 +01:00
}