forked from qt-creator/qt-creator
Fix wrong usage of Properties blocks in qbs files.
A property set on the product level is ignored if the same property is also set in a Properties block whose condition matches. Change-Id: I9248d735977e3d8ff8f1836fd80a49f3c8839bdc Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
committed by
Joerg Bornemann
parent
6d8e352981
commit
d646bde5f4
@@ -8,21 +8,24 @@ QtcLibrary {
|
|||||||
Depends { name: "Qt.network" }
|
Depends { name: "Qt.network" }
|
||||||
cpp.includePaths: base.concat(".")
|
cpp.includePaths: base.concat(".")
|
||||||
|
|
||||||
cpp.defines: base.concat("ZEROCONF_LIBRARY")
|
cpp.defines: {
|
||||||
|
var list = base;
|
||||||
Properties {
|
list.push("ZEROCONF_LIBRARY");
|
||||||
condition: qbs.targetOS == "windows"
|
if (qbs.targetOS === "linux") {
|
||||||
cpp.dynamicLibraries: "ws2_32"
|
list.push(
|
||||||
}
|
|
||||||
Properties {
|
|
||||||
condition: qbs.targetOS == "linux"
|
|
||||||
cpp.defines: base.concat([
|
|
||||||
"_GNU_SOURCE",
|
"_GNU_SOURCE",
|
||||||
"HAVE_IPV6",
|
"HAVE_IPV6",
|
||||||
"USES_NETLINK",
|
"USES_NETLINK",
|
||||||
"HAVE_LINUX",
|
"HAVE_LINUX",
|
||||||
"TARGET_OS_LINUX"
|
"TARGET_OS_LINUX"
|
||||||
])
|
);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
Properties {
|
||||||
|
condition: qbs.targetOS == "windows"
|
||||||
|
cpp.dynamicLibraries: "ws2_32"
|
||||||
}
|
}
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
|
|||||||
@@ -21,11 +21,15 @@ QtcPlugin {
|
|||||||
Depends { name: "app_version_header" }
|
Depends { name: "app_version_header" }
|
||||||
|
|
||||||
Depends { name: "cpp" }
|
Depends { name: "cpp" }
|
||||||
Properties {
|
|
||||||
condition: qtcore.versionMajor >= 5
|
cpp.defines: {
|
||||||
cpp.defines: base.concat(["QT_NO_WEBKIT"])
|
var list = base;
|
||||||
|
if (qtcore.versionMajor >= 5)
|
||||||
|
list.push("QT_NO_WEBKIT");
|
||||||
|
list.push("QT_CLUCENE_SUPPORT");
|
||||||
|
return list;
|
||||||
}
|
}
|
||||||
cpp.defines: base.concat("QT_CLUCENE_SUPPORT")
|
|
||||||
cpp.includePaths: base.concat("../../shared/help")
|
cpp.includePaths: base.concat("../../shared/help")
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
|
|||||||
Reference in New Issue
Block a user