Hi,
I would like to build several binaries from the same sources with different
compiler settings (defines). Is this a correct way to go:
import qbs
CppApplication {
name: "foo-bar"
multiplexByQbsProperties: ["profiles"]
Profile {
name: "foo"
cpp.defines: ["FOO"]
baseProfile: project.profile
}
Profile {
name: "bar"
cpp.defines: ["BAR"]
baseProfile: project.profile
}
qbs.profiles: ["foo", "bar"]
files: [
"main.cpp"
]
}
Also, I noticed that without specifying baseProfile: project.profile
property qbs silently switches to a default profile regardless of active
profile in QtCreator. Is it a bug or feature?
--------------------------
Best regards,
Aleksei Skorodumov
_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs