[Qbs] Building more than one binary from the same sources with multiplexing

Алексей Скородумов 2350266 at gmail.com
Tue Sep 4 15:53:59 CEST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20180904/2257b0f8/attachment.html>


More information about the Qbs mailing list