How to include my own library in my d program with dub ?

JN 666total at wp.pl
Thu May 14 12:57:19 UTC 2020


On Thursday, 14 May 2020 at 12:53:43 UTC, Vinod K Chandran wrote:
> Hi all,
> I just build a skeleton of a Gui library(win32 based) for my 
> own purpose. How do i use this in my d programs with dub ? Now, 
> all files are located in a folder called "GuiLib".
> Side note : Why i started making a gui library instead of 
> learning language ?
> Answer : By this way, i can learn the language and i will have 
> my own gui library. Otherwise, i would have struggle with 
> learning a third party library.

I don't know if it's up-to-date, but this should work:

https://github.com/dlang/dub/wiki/Cookbook#working-with-submodules-or-packages-that-are-not-in-the-registry

I am assuming your GUI library uses dub already for building?


More information about the Digitalmars-d-learn mailing list