[QBS] Platform specific Depends
Ruslan Nigmatullin
EuroElessar at yandex.ru
Fri Sep 14 15:13:27 CEST 2012
14.09.2012, 15:47, "Joerg Bornemann" <joerg.bornemann at nokia.com>:
> On 13/09/2012 18:34, ext Сидоров Алексей wrote:
>
>> How should be called platform specific modules?
>>
>> Depends { name: "Cocoa" condition: qbs.qbs.targetOS === "mac" }
>> vs
>> Depends { name: "mac.Cocoa" }
>>
>> and
>>
>> Depends { name: "windows.user32" }
>> vs
>> Depends { name: "winapi.user32" }
>> vs
>> Depends { name: "user32"; condition: qbs.qbs.targetOS === "windows" }
>>
>> Whether to use a prefix for the platform specific modules in Depends and whether to add condition variable?
>
> I vote for a prefix that corresponds to the platform's name.
> Depends { name: "mac.Cocoa" }
> Depends { name: "windows.user32" }
>
> Cheers,
>
> Jörg
But what to do with linux-specific libraries as libunity/glib/gtk/telepathy-*/etc?
And should Growl (3rd-party library, but it's mac-specific) be in mac's namespace?
Ruslan
More information about the Qbs
mailing list