How do I install a library?

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Nov 9 17:54:51 UTC 2018


On Fri, Nov 09, 2018 at 05:38:18PM +0000, Adam D. Ruppe via Digitalmars-d-learn wrote:
> On Friday, 9 November 2018 at 01:18:51 UTC, bachmeier wrote:
> > There's no obvious reason it can't be done that way in D
> 
> It is trivial, really. Just download the files to your import path and
> `dmd -i`. Only hard part is the modules need to be arranged such that
> dmd -i will find it... and the dub package layout isn't compatible
> with it... lol.
> 
> But my libs are :P
> 
> We could probably write a downloader that reads module declarations
> and arranges them in an installed libs folder. Very simplified
> "install library" thing whose initial setup could set the dmd conf
> stuff so it just works (or wraps dmd slightly to add -I and -i to
> build it)...

Do it!  That would be a welcome convenience for importing 3rd party code
where the full machinery of dub isn't necessary.


T

-- 
If creativity is stifled by rigid discipline, then it is not true creativity.


More information about the Digitalmars-d-learn mailing list