Dub and what it does

Russel Winder russel at winder.org.uk
Mon Dec 23 08:14:22 PST 2013


On Mon, 2013-12-23 at 10:57 +0100, Jacob Carlborg wrote:
> On 2013-12-23 10:52, Jacob Carlborg wrote:
> 
> > You need to add a package.json file to your project.
> >
> > http://code.dlang.org/package-format
> 
> I accidentally sent the above message too soon.

I was worried by that previous post as I think it impossible to have a
Dub build without a package.json ;-)

> You either need to explicitly set the target type[1] to "executable" or 
> make sure your project works with "autodetect". Add the GtkD package as 
> a dependency[2].
> 
> [1] http://code.dlang.org/package-format#target-types
> [2] http://code.dlang.org/package-format#build-settings

It seems that a project with no target type but just a dependency on
GtkD generates static library rather than executable. I'll use an
explicit setting to avoid autodetect.

Thanks.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



More information about the Digitalmars-d-learn mailing list