You can also detect device type runtime. https://github.com/kimmoli/chargemon/blob/master/src/cmon.cpp#L64
-----Original Message----- From: devel-boun...@lists.sailfishos.org [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Michael Fuchs Sent: 14. maaliskuuta 2016 18:19 To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] Help for Syncthing App Good point. But I need it for packaging the proper syncthing binary. Am 14.03.2016 um 17:03 schrieb Pami Ketolainen: > On 03/14/2016 04:49 PM, Michael Fuchs wrote: >> Right, the colons where missing. But this was just an example, which >> I know from the documentation. I would need it to have two different >> values for tablet and phone. It's got to be sth like: >> >> arm: VAR = ARMVALUE >> x86_32: VAR = x86VALUE >> > > There probably is a way to detect the architecture during build time, > but in general that is not the right way to differentiate between > different types of devices. Because there could be ARM tablets and x86 > phones. > > Most likely if you need to do some decisions based on the device type, > you should do that at run time. > _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org