dub icon indicating copy to clipboard operation
dub copied to clipboard

Build a static library and all its sub-dependencies

Open rtbo opened this issue 3 years ago • 2 comments

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

rtbo avatar Feb 23 '22 21:02 rtbo

See ~~https://github.com/mesonbuild/meson/pull/10019~~ https://github.com/mesonbuild/meson/pull/10045

rtbo avatar Feb 25 '22 20:02 rtbo

My script is now a dub package to ease its use for Meson users: dub-build-deep.

rtbo avatar Mar 02 '22 22:03 rtbo

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

MrcSnm avatar Aug 11 '23 18:08 MrcSnm