How to use dub with our own package
Vinod K Chandran
kcvinu82 at gmail.com
Wed May 12 19:22:08 UTC 2021
On Wednesday, 12 May 2021 at 18:26:39 UTC, Christian Köstlin
wrote:
> Are you really interested in doing winglib as a separate dub
> package?
> If not you could just do a `dub init yourappname` which gives
> you the basic skeleton. something like:
>
> .
> ├── dub.sdl
> └── source
> └── app.d
>
>
> then you replace app.d with your file + put your winglib with
> package.d into a subfolder under source ->
>
> .
> ├── dub.sdl
> └── source
> ├── app.d
> └── winglib
> ├── othermodule.d
> └── package.d
>
>
> then a dub build will just build your project including the
> submodules ...
>
> if you need a separate dub package then the other answers lead
> the way.
> https://dub.pm/commandline.html#add-local
That's really helpful. All i need to do is re-arrange my folder
setup. Thanks a lot. :)
More information about the Digitalmars-d-learn
mailing list