Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] qmake: how to select different android build flags depending on host



  • Hey,

    I have a qmake project which I compile from a win32 machine and from a linux machine.
    The include files of a library I use for android are different on the machines.

    I can select by target using:

    android { ...}
    

    or

    win32 { ...}
    

    but can I also select configurations depending on the host?

    Thanks!
    nathan


  • Lifetime Qt Champion

    Hi,

    You could use QMAKE_HOST.name to differentiate both computers

    Hope it helps


Log in to reply