QMAKE_HOST provides info about the HOST (the device you're compiling ON), not the TARGET (the device you're compiling FOR). They might be the same, but in case of Sailfish OS you're cross-compiling, so in most cases they're different.

For target architecture there's QT_ARCH qmake variable. But it's undocumented, so beware.

On 14/03/16 16:48, Andrew Penkrat wrote:
I'd suggest trying something like

linux-g++:contains(QMAKE_HOST.arch, x86_64):{
     do something
}

Based on
https://wiki.qt.io/Qt_project_org_faq#How_can_I_detect_in_the_.pro_file_if_I_am_compiling_on_a_32_bit_or_a_64_bit_platform.3F

Cheers,
Andrew

2016-03-14 17:49 GMT+03:00 Michael Fuchs <mic...@gmx.at
<mailto:mic...@gmx.at>>:

    Thanks.

    Am 14.03.2016 um 15:31 schrieb Yuvraaj:

        [nemo@Jolla ~]$ ls /sys/class/power_supply/
        dollar_cove_battery  dollar_cove_charger

        [nemo@Jolla ~]$ ls /sys/class/power_supply/*/online
        /sys/class/power_supply/dollar_cove_charger/online

--
With best regards,
Oleksii Serdiuk

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to