What's the proper way to add a local file dependence to dub?

Martin Tschierschke mt at smartdolphin.de
Mon Mar 12 10:11:37 UTC 2018


On Monday, 12 March 2018 at 09:38:41 UTC, Martin Tschierschke 
wrote:
> On Sunday, 4 March 2018 at 16:46:56 UTC, Marc wrote:
>> [...]
>
> I did it this sway:
> the part of dub.json:
> "dependencies": {
>
[...]
>                 "mylib":{
>                         "versions": "~master",
>                         "path": "/home/mt/d/mylib"
>                 }
> },
>
> In spite of using a version directly after the used lib,
> you give two parameters
>
>   "versions" : "~master"
>
> and
>
>   "path": "/path_to_your_lib/"
>
> Works well.
And in ...mylib/dub.json
you just add:

"targetType": "library",

on the top-level, and place your dir.d in ...mylib/source/



More information about the Digitalmars-d-learn mailing list