Re: Local library with dub

2021-04-21 Thread JG via Digitalmars-d-learn
On Wednesday, 21 April 2021 at 19:15:19 UTC, Jordan Wilson wrote: On Wednesday, 21 April 2021 at 15:07:25 UTC, JG wrote: On Wednesday, 21 April 2021 at 00:39:41 UTC, Mike Parker wrote: [...] Thanks. I suppose this means that if you want to able to use multiple versions you have to keep each

Re: Local library with dub

2021-04-21 Thread Jordan Wilson via Digitalmars-d-learn
On Wednesday, 21 April 2021 at 15:07:25 UTC, JG wrote: On Wednesday, 21 April 2021 at 00:39:41 UTC, Mike Parker wrote: On Tuesday, 20 April 2021 at 18:43:28 UTC, JG wrote: This still leaves open the question of how to include a version of such a library in another project via dub. Execute

Re: Local library with dub

2021-04-21 Thread JG via Digitalmars-d-learn
On Wednesday, 21 April 2021 at 00:39:41 UTC, Mike Parker wrote: On Tuesday, 20 April 2021 at 18:43:28 UTC, JG wrote: This still leaves open the question of how to include a version of such a library in another project via dub. Execute `dub add-local` followed by the path to the project's r

Re: Local library with dub

2021-04-20 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 20 April 2021 at 18:43:28 UTC, JG wrote: This still leaves open the question of how to include a version of such a library in another project via dub. Execute `dub add-local` followed by the path to the project's root directory (the directory containing the `dub.json/sdl`) and

Re: Local library with dub

2021-04-20 Thread JG via Digitalmars-d-learn
On Tuesday, 20 April 2021 at 18:11:18 UTC, Andre Pany wrote: On Tuesday, 20 April 2021 at 17:15:15 UTC, JG wrote: Hi I want to put some code together in a local library that is then used by several other projects. I am running into a few problems. Firstly when I try and configure the code to

Re: Local library with dub

2021-04-20 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 20 April 2021 at 17:15:15 UTC, JG wrote: Hi I want to put some code together in a local library that is then used by several other projects. I am running into a few problems. Firstly when I try and configure the code to be a library (dub init, add d files to source, and remove so