2023-02-24 13:36:40 +01:00
|
|
|
import "qbs/imports/conan/ConanfileProbe.qbs" as ConanfileProbe
|
2023-02-13 18:59:07 +01:00
|
|
|
|
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
|
2023-02-20 14:50:23 +01:00
|
|
|
property string minimumMacosVersion: undefined
|
2023-02-25 09:26:21 +01:00
|
|
|
property stringList conanProfiles: []
|
2023-02-13 18:59:07 +01:00
|
|
|
|
2023-02-24 13:36:40 +01:00
|
|
|
// Temporary probe until qbs doesn't support conan 2.0
|
|
|
|
ConanfileProbe {
|
2023-02-13 18:59:07 +01:00
|
|
|
id: thirdPartyConanPackages
|
|
|
|
condition: enableConan
|
2023-02-20 15:40:38 +01:00
|
|
|
conanfilePath: project.sourceDirectory + "/conanfile.py"
|
2023-02-20 20:15:49 +01:00
|
|
|
verbose: true
|
2023-02-25 09:26:21 +01:00
|
|
|
profiles: conanProfiles
|
2023-02-13 18:59:07 +01:00
|
|
|
}
|
|
|
|
|
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"
|
|
|
|
|
2023-02-16 19:01:38 +01:00
|
|
|
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
|
|
|
}
|