dub repository for a C binding

Sönke Ludwig sludwig at outerproduct.org
Fri Oct 11 03:57:34 PDT 2013


Am 11.10.2013 11:25, schrieb Sebastian Graf:
> On Thursday, 10 October 2013 at 01:51:09 UTC, Rikki Cattermole wrote:
>>
>> Take a look at copyFiles option. It copies files e.g. dll's into the
>> bin directory when compiled. Although keep an option available in e.g.
>> a subpackage that does not do this.
>>
>> For more information on what dub can do look at
>> http://code.dlang.org/package-format.
> 
> And how would I go about the import lib? I have to somehow feed it into
> the compiler, preferably automatically when referencing the (sub-)package.

Right now you have to use the "sourceFiles" field for that. Later it
should be possible to set a library search path + library name instead.
Example: https://github.com/s-ludwig/dlibgit/blob/master/package.json


More information about the Digitalmars-d mailing list