-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
pkg-config: Support for arbitrary variables #1096
Comments
This is a dupe of #726 and I think it's available already. |
Yes, this is already available, however you need 0.36.0 for this: https://github.com/mesonbuild/meson/wiki/Reference-manual#dependency-object A workaround if you need to use an older Meson is to use |
What about arbitrary variables in file generation? |
We're planning on adding more features to that, but it's not urgent since there's a good workaround. The recommended way to do non-trivial pkg-config file generation is to use I see that in Wayland you also already have |
Closing this since improving pkg-config file generation is already on the TODO list. |
fwiw, support for variables in file generation was added with commit 7ed1990 |
pkg-config supports querying arbitrary variables, which is something we make use of in two places in Wayland.
Firstly, we install a .pc for the wayland-scanner generator/utility, so it's a little bit easier to find and a little bit harder to get wrong. This involves a custom wayland_scanner variable in the pkg-config file.
Secondly, we also use it in other places for the plugin directory setting. GStreamer also does this (and a couple of other things, e.g. GST_API_VERSION), and as a result has to use configure_file rather than built-in pkg-config support. I take it from #620 that this is desirable to fix.
The text was updated successfully, but these errors were encountered: