[SailfishDevel] Multiplatform apps on Sailfish, a.k.a. scoping and ifdeffing

Attila Csipa qt at csipa.in.rs
Thu Mar 14 09:06:32 UTC 2013


On 13/03/13 23:14, David Greaves wrote:
> On 13/03/13 20:29, Attila Csipa wrote:
>> Hi,
>>
>> I'm wondering if Sailfish has or plans to have any qmake level scoping or
>> ifdeffing to make development for multiplatform projects less painful? I
>> understand "Sailfish is just Linux", but "just Linux" doesn't imply Silica and
>> similar, Qt is a bit on the stubborn side when it comes to graceful QML
>> fallbacks and detection, so help would be more than welcome. In a worst case
>> scenario, I would expect at least something along the lines of what Harmattan
>> had (see
>> http://wiki.meego.com/Porting_Fremantle_Applications_to_Harmattan#Harmattan_scope ).
> Yes. What would you like?

A way for conditionals in qmake (mostly for packaging), and #ifdef. I 
have no particular emotional attachments of how to call these constants 
(also depends on how Sailfish sees itself in terms of future versioning, 
licensing, subsequent releases, etc), but the mechanism used in 
Harmattan is good enough for me - have a .prf that qmake can pull in 
(it's linux enough that I would refrain from OS-style platform scoping) 
and a qplatformdefs.h for the C++ side.

Best regards
Attila Csipa


More information about the Devel mailing list