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

2013-09-28 Thread Ruediger Gad
On 03/19/2013 10:34 AM, Attila Csipa wrote:
> On 14-Mar-13 11:06, Attila Csipa wrote:
 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.
> 
> The cheap, ugly, and completely you-should-not-be-doing-this-at-home way
> I'm using currently, if any misguided individuals are interested:
> 
> load(sailfishsilicabackground)
> contains(LIBS,-lsailfishsilicabackground): {
> message(SailfishOS build)
> 
> DEFINES += MER_EDITION_SAILFISH
> MER_EDITION = sailfish
> 
> # QML files and folders
> qml.files = *.qml pages cover main.qml
> 
> # The .desktop file
> desktop.files = qtinfo_sailfish.desktop
> 
> # Please do not modify the following line.
> include(../sailfishapplication/sailfishapplication.pri)
> 
> OTHER_FILES = qtinfo.yaml
> }
> 
> If you provide a way of doing this on a system level, I'm happy to
> retire hacks like this :)
> 
> Best regards,
> Attila
> 

Hi,

this hack doesn't work in the Qt5-based alpha SDK.
For now I use the following hack as workaround:

exists("/usr/lib/qt5/qml/Sailfish/Silica/SilicaGridView.qml"): {
message(SailfishOS build)


Is there a better way to do this?



Best regards,

Ruediger




> 
> ___
> SailfishOS.org Devel mailing list


-- 
http://ruedigergad.com



smime.p7s
Description: S/MIME Cryptographic Signature
___
SailfishOS.org Devel mailing list

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

2013-03-19 Thread Attila Csipa

On 14-Mar-13 11:06, Attila Csipa wrote:

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.


The cheap, ugly, and completely you-should-not-be-doing-this-at-home way 
I'm using currently, if any misguided individuals are interested:


load(sailfishsilicabackground)
contains(LIBS,-lsailfishsilicabackground): {
message(SailfishOS build)

DEFINES += MER_EDITION_SAILFISH
MER_EDITION = sailfish

# QML files and folders
qml.files = *.qml pages cover main.qml

# The .desktop file
desktop.files = qtinfo_sailfish.desktop

# Please do not modify the following line.
include(../sailfishapplication/sailfishapplication.pri)

OTHER_FILES = qtinfo.yaml
}

If you provide a way of doing this on a system level, I'm happy to 
retire hacks like this :)


Best regards,
Attila


___
SailfishOS.org Devel mailing list


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

2013-03-14 Thread Attila Csipa

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
___
SailfishOS.org Devel mailing list


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

2013-03-13 Thread David Greaves
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?

David
___
SailfishOS.org Devel mailing list


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

2013-03-13 Thread Attila Csipa

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 
).


Best regards,
Attila Csipa
 

___
SailfishOS.org Devel mailing list