Disable warnings from xerces-c with pkg-config.

This commit is contained in:
Roman Telezhynskyi 2023-08-18 13:48:03 +03:00
parent bb43ff07ea
commit 4dbac33c96
3 changed files with 28 additions and 4 deletions

View File

@ -813,7 +813,21 @@ Module {
cpp.systemIncludePaths: {
var paths = [FileInfo.joinPaths(product.buildDirectory, "qt.headers")];
if (Utilities.versionCompare(qbs.version, "1.22") < 0) {
if (Utilities.versionCompare(Qt.core.version, "6") >= 0 && !useConanPackages)
{
var includePaths = product.cpp.includePaths;
for(var i = 0; i < includePaths.length; i++)
{
if (includePaths[i].includes("xerces-c"))
{
paths.push(includePaths[i]);
}
}
}
if (Utilities.versionCompare(qbs.version, "1.22") < 0)
{
var qtLibs = [
"QtCore",
"QtSvg",

View File

@ -15,7 +15,16 @@ VToolApp {
Depends { name: "ebr" }
Depends { name: "multibundle"; }
Depends { name: "VGAnalyticsLib" }
Depends { name: "conan.XercesC"; condition: buildconfig.useConanPackages }
Depends {
name: "xerces-c";
condition: Utilities.versionCompare(Qt.core.version, "6") >= 0 && !buildconfig.useConanPackages
}
Depends {
name: "conan.XercesC";
condition: Utilities.versionCompare(Qt.core.version, "6") >= 0 && buildconfig.useConanPackages
}
name: "Tape"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"

View File

@ -98,9 +98,10 @@ VLib {
Export {
Depends { name: "cpp" }
Depends { name: "Qt"; submodules: ["xml"] }
Depends { name: "Qt"; submodules: ["core", "xml"] }
Depends { name: "VMiscLib" }
Depends { name: "conan.XercesC"; condition: buildconfig.useConanPackages }
Depends { name: "xerces-c"; condition: Utilities.versionCompare(Qt.core.version, "6") >= 0 && !buildconfig.useConanPackages }
Depends { name: "conan.XercesC"; condition: Utilities.versionCompare(Qt.core.version, "6") >= 0 && buildconfig.useConanPackages }
cpp.includePaths: [exportingProduct.sourceDirectory]
}
}