digitalmars.D - Creating a dub library package that also comes with an executable
Martin Nowak <code dawg.eu> writes:
Might be interesting for more people. Just added a recipe to our dub cookbook (yes that exists). [Creating a library package that also comes with an executable](https://github.com/dlang/dub/wiki/Cookbook#creating-a-library-package-that-also-comes-with-an-executable) Seems like quite a lot of people keep (ab)using much more complicated subpackages for that. https://github.com/dlang/dub/issues/1155 Subpackages are intended to modularize your package for the outside, e.g. to only link against vibe-d:data (http://code.dlang.org/packages/vibe-d%3Adata), while keeping all of them in a single repo. Configurations are intended to offer different flavors of the same source code and work great to offer executable and library targets.
meppl <mephisto nordhoff-online.de> writes:
On Sunday, 18 June 2017 at 16:51:41 UTC, Martin Nowak wrote:Might be interesting for more people. Just added a recipe to our dub cookbook (yes that exists).would be nice to make that Wiki ( https://github.com/dlang/dub/wiki ) more visible to people who visit http://code.dlang.org/