[SailfishDevel] Help for Syncthing App

Oleksii Serdiuk contacts at oleksii.name
Wed Mar 16 10:14:25 UTC 2016


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 <michfu at gmx.at
> <mailto:michfu at gmx.at>>:
>
>     Thanks.
>
>     Am 14.03.2016 um 15:31 schrieb Yuvraaj:
>
>         [nemo at Jolla ~]$ ls /sys/class/power_supply/
>         dollar_cove_battery  dollar_cove_charger
>
>         [nemo at Jolla ~]$ ls /sys/class/power_supply/*/online
>         /sys/class/power_supply/dollar_cove_charger/online

-- 
With best regards,
Oleksii Serdiuk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4372 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20160316/e7973289/attachment.bin>


More information about the Devel mailing list