dub
dub copied to clipboard
Build a static library and all its sub-dependencies
When building a Dub static library (e.g. dub build vibe-d:http), Dub will build the static library itself, but not the dependencies of this library (simply because I think it is not needed).
Is it possible to get Dub build the complete chain with a single command?
This is useful when using Meson. In a Meson build, if one depends on say vibe-d:http, Meson expect to find all the needed Dub libraries already built.
Running dub build for a dozen of packages is quite tedious and error prone as some packages will require a specific configuration.
I wrote a script to support that, but it would be better if it comes from Dub.
System information
- DUB version 1.27.0
- Arch Linux
- DMD v2.098.1
See ~~https://github.com/mesonbuild/meson/pull/10019~~ https://github.com/mesonbuild/meson/pull/10045
My script is now a dub package to ease its use for Meson users: dub-build-deep.
Hey guys @WebFreak001 @mathias-lang-sociomantic could you take a look on that? It seems it also solves the issue I've just opened which I have been in need: https://github.com/dlang/dub/issues/2687 I would like to get that merged ASAP for the next dub release being finally fixed for my engine