Hi,
In my project, I use the following construction:
cpp.defines: {
var def = [];
if (project.simdDebug)
def.push("SIMD_DEBUG");
if (project.useSimd)
def.push("USE_SIMD");
return def;
}
It works fine.
But I decided to experiment and do the same through "Properties"
Properties {
condition: project.simdDebug
cpp.defines: outer.concat(["SIMD_DEBUG"])
}
Properties {
condition: project.useSimd
cpp.defines: outer.concat(["USE_SIMD"])
}
As a result, I get either SIMD_DEBUG or USE_SIMD at the output, but not
both at once.
Is it possible to get both values immediately using "Properties"?
--
BR, Pavel Karelin
_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs