Disable warnings from xerces-c with pkg-config.
This commit is contained in:
parent
bb43ff07ea
commit
4dbac33c96
|
@ -813,7 +813,21 @@ Module {
|
||||||
cpp.systemIncludePaths: {
|
cpp.systemIncludePaths: {
|
||||||
var paths = [FileInfo.joinPaths(product.buildDirectory, "qt.headers")];
|
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 = [
|
var qtLibs = [
|
||||||
"QtCore",
|
"QtCore",
|
||||||
"QtSvg",
|
"QtSvg",
|
||||||
|
|
|
@ -15,7 +15,16 @@ VToolApp {
|
||||||
Depends { name: "ebr" }
|
Depends { name: "ebr" }
|
||||||
Depends { name: "multibundle"; }
|
Depends { name: "multibundle"; }
|
||||||
Depends { name: "VGAnalyticsLib" }
|
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"
|
name: "Tape"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "Tape" : "tape"
|
||||||
|
|
|
@ -98,9 +98,10 @@ VLib {
|
||||||
|
|
||||||
Export {
|
Export {
|
||||||
Depends { name: "cpp" }
|
Depends { name: "cpp" }
|
||||||
Depends { name: "Qt"; submodules: ["xml"] }
|
Depends { name: "Qt"; submodules: ["core", "xml"] }
|
||||||
Depends { name: "VMiscLib" }
|
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]
|
cpp.includePaths: [exportingProduct.sourceDirectory]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user