[SailfishDevel] SailfishOS as an OS/platform in Qt
mohammed.hassan at jollamobile.com
Fri Dec 5 14:03:56 UTC 2014
On Thu, Dec 04, 2014 at 10:12:37PM +0200, Tone Kastlunger wrote:
> Anything that makes a developer's life easier is absolutely welcomed
> I'd say.
> I must admit to have cursed many times over such a feature not being
> present (either as macro OR as selectior that win32:unix:mac: are..)
I have an application which I build for Harmattan, SailfishOS and Android.
I have a common C++ codebase (95% common maybe), A QML abstraction and
platform specific QML ui bits.
I also have a separate .pro file per platform.
Each .pro file adds an OS specific macro.
harmattan.pro adds -DHARMATTAN=1
sailfish.pro adds -DSAILFISH=1
android.pro adds -DANDROID=1
Here is an example:
Works fine for me.
More information about the Devel