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

pkgconfig module should have a way to exclude dependencies #14269

Open
alanc opened this issue Feb 17, 2025 · 1 comment
Open

pkgconfig module should have a way to exclude dependencies #14269

alanc opened this issue Feb 17, 2025 · 1 comment

Comments

@alanc
Copy link
Contributor

alanc commented Feb 17, 2025

Currently (meson 1.7) all dependencies used to build a library are output in either the Requires or Requires.private lines of the .pc file generated by the pkgconfig module. There should be some way to specify excluding dependencies that were only needed to build the library, but which aren't required by consumers of the library. For instance, the X11 libraries often depend on the *proto packages for the associated X11 extension protocol headers, but applications linking against those libraries don't need the protocol headers, since the library handles the protocol for them.

@alanc
Copy link
Contributor Author

alanc commented Feb 17, 2025

For now, the workaround is to not pass the library object to the pkgconfig module, but to instead specify all the fields manually in the pkg.generate call.

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

No branches or pull requests

2 participants