<p dir="ltr"><br>
On Dec 6, 2014 8:30 PM, "Lorn Potter" <<a href="mailto:lorn.potter@jolla.com">lorn.potter@jolla.com</a>> wrote:<br>
><br>
><br>
> On 5 Dec 2014, at 2:38 am, Alejandro Exojo <<a href="mailto:suy@badopi.org">suy@badopi.org</a>> wrote:<br>
><br>
> ><br>
> > Then I searched a bit in the branch of the mer-qt/qtbase repo. I see you don't<br>
> > use any mkspec for SailfishOS or Jolla, right? That's where I thought you<br>
> > might have it, and where I think it could be. Blackberry sets there the<br>
> > QMAKE_PLATFORM and Q_OS_BLACKBERRY.<br>
><br>
> Tizen also and their own branch even.<br>
><br>
> There are also quite a few other devices that have their own mkspec, so there is precedence for supporting a sailfish/jolla platform mkspec.<br>
><br>
><br>
> ~/depot/qt/qt5/qtbase/mkspecs/devices $ [tizen]> ls<br>
> blackberry-playbook-armle-v7-qcc/       linux-archos-gen8-g++/                  linux-beagleboard-g++/                  linux-mipsel-broadcom-97425-g++/        linux-snowball-g++/<br>
> blackberry-playbook-armv7le-qcc/        linux-arm-amlogic-8726M-g++/            linux-g++-tizen/                        linux-rasp-pi-g++/                      linux-tegra2-g++/<br>
> blackberry-playbook-x86-qcc/            linux-arm-hisilicon-hix5hd2-g++/        linux-imx53qsb-g++/                     linux-sh4-stmicro-ST7108-g++/<br>
> common/                                 linux-arm-trident-pnx8473-g++/          linux-imx6-g++/                         linux-sh4-stmicro-ST7540-g++/<br>
><br>
><br>
><br>
> ><br>
> > Yes, yes. I know there is a solution: pass a parameter to the qmake<br>
> > invocation. Store the invocation flag on the RPM packaging for final<br>
> > deployment, and maybe a .pro.shared file for development. That's what Puzzle<br>
> > Master has now too. Still I think there is some value in having this sorted<br>
> > out in a more general way, specially given that you'll want people to also<br>
> > distinguish a build for the Jolla phone or the Jolla tablet.<br>
> ><br>
> Well, this one is easy. Tablet isn't arm based. :)<br>
></p>
<p dir="ltr">Actually, no, you want to detect features at runtime, not at build time.</p>