Thread overview
dub to create multiple executables from one source directory?
Dec 19, 2016
biocyberman
Dec 19, 2016
Sönke Ludwig
Dec 19, 2016
John Colvin
December 19, 2016
Hi
I am learning D and dub, and playing with this repository: https://github.com/biod/BioD
The whole repo itself and be compiled with `dub build` command. How write dub.json under `examples` directory and compile every d source file in there?
December 19, 2016
Am 19.12.2016 um 11:24 schrieb biocyberman:
> Hi
> I am learning D and dub, and playing with this repository:
> https://github.com/biod/BioD
> The whole repo itself and be compiled with `dub build` command. How
> write dub.json under `examples` directory and compile every d source
> file in there?

The cleanest way would be to make each example a single file package:
http://code.dlang.org/getting_started#single-file-packages
December 19, 2016
On Monday, 19 December 2016 at 12:36:13 UTC, Sönke Ludwig wrote:
> Am 19.12.2016 um 11:24 schrieb biocyberman:
>> Hi
>> I am learning D and dub, and playing with this repository:
>> https://github.com/biod/BioD
>> The whole repo itself and be compiled with `dub build` command. How
>> write dub.json under `examples` directory and compile every d source
>> file in there?
>
> The cleanest way would be to make each example a single file package:
> http://code.dlang.org/getting_started#single-file-packages

and use path based dependencies to refer to the local version of the main package, not whatever is available remotely.
https://code.dlang.org/package-format?lang=sdl#version-specs