[Qbs] Handling particularities of different OS's

Nuno Santos nunosantos at imaginando.pt
Tue Oct 17 00:55:46 CEST 2017


Hi,

Thanks for your reply. I’m trying it already but I’m having other kinds of problems I’m still not comfortable with.

I will investigate.

Thanks!

Regards,

Nuno

> On 16 Oct 2017, at 09:54, Christian Kandeler <christian.kandeler at qt.io> wrote:
> 
> On Sun, 15 Oct 2017 23:08:19 +0100
> Nuno Santos <nunosantos at imaginando.pt> wrote:
> 
>> I’m giving my first steps with qbs in order to embrace the future and start porting my framework to it. I have just tried it for the first time today but I have already been faced with a new problem I can’t find on documentation. Problem:
>> 
>> - I support iOS, Android, Windows & Mac
>> 
>> For the same app/lib I might need to include different source files
> 
> This is done via the Group item: https://doc.qt.io/qbs/group-item.html
> 
>> and links with different libs. 
> 
> This is done via the Properties item:
> https://doc.qt.io/qbs/properties-item.html
> 
>> I’m basically looking for the equivalent to macs { ,} android { }, etc
> 
> The two items mentioned above should cover this. In both cases, use a condition based on the target OS, e.g. "condition: qbs.targetOS.contains('macos')".
> 
> 
> Christian
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs




More information about the Qbs mailing list