DUB, Platform specifications and dependencies

Luis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 22 00:32:07 PST 2016


On Monday, 30 November 2015 at 20:27:51 UTC, Zardoz wrote:
> On Monday, 30 November 2015 at 16:54:43 UTC, Sönke Ludwig wrote:
>> Am 24.11.2015 um 19:51 schrieb Zardoz:
>>
>> Platform specifications are currently not supported for 
>> dependencies due to the way the dependency resolver works. 
>> However, it is possible to use platform specific 
>> configurations for this purpose:
>>
> Thanks!! I ended doing some minor change to get it working :
>
> subPackage {
>   name "lem1802"
>   description "Visual LEM1802 font editor"
>   excludedSourceFiles "src/bconv.d"
>   excludedSourceFiles "src/ddis.d"
>
>   configuration "nogtk" {
>     targetType "executable"
>     targetName "lem1802"
>     platform "windows"
>     libs "gtkd"
>   }
>
>   configuration "gtk" {
>     targetType "executable"
>     targetName "lem1802"
>     platform "posix"
>     dependency "gtk-d:gtkd" version="~>3.2.0"
>   }
> }

I just updated dmd / dub from the APT repository . This is doing 
something very weird now.

Every time that I do a "dub build dedcpu:lem1802" on Ubuntu 15.10 
, dub try to execute the "nogtk" configuration that is Windows 
only!



More information about the Digitalmars-d-learn mailing list