Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a static library and all its sub-dependencies #2224

Closed
rtbo opened this issue Feb 23, 2022 · 3 comments · Fixed by #2647
Closed

Build a static library and all its sub-dependencies #2224

rtbo opened this issue Feb 23, 2022 · 3 comments · Fixed by #2647

Comments

@rtbo
Copy link
Contributor

rtbo commented Feb 23, 2022

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
Copy link
Contributor Author

rtbo commented Feb 25, 2022

See mesonbuild/meson#10019 mesonbuild/meson#10045

@rtbo
Copy link
Contributor Author

rtbo commented Mar 2, 2022

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

@MrcSnm
Copy link
Contributor

MrcSnm commented Aug 11, 2023

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: #2687
I would like to get that merged ASAP for the next dub release being finally fixed for my engine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants