You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I might be missing something very basic, but I cannot seem to find a way to get the dependencies of a (pkg-config) dependency. I.e. I would like to be able to parse the contents of the "Requires:" field. Currently I work this around by using run_command('pkg-config', '--print-requires', ...), e.g. see here.
Is this already supported? Or is it something that is not recommended to do?
My use case and context:
My project (wstroke, a gesture plugin for Wayfire) depends on Wayfire, and transitively on the wlroots library. Currently, there are multiple versions of wlroots that can be installed in parallel, providing separate pkg-config files (wlroots and wlroots-0.18). My code can be built with either, but it should use the same version that Wayfire uses. Of course, this is achieved by adding Wayfire as a dependency which will pull in the correct version of wlroots as well.
My problem is that beyond the plugin library, I also want to generate a separate executable (see here) which should only depend on wlroots and not on Wayfire (but of course the same version of wlroots as the plugin library). So I need to find out which dependency is used by Wayfire and include that.
My current solution works, but I'm wondering if there is a better way to achieve this.
Thanks!
The text was updated successfully, but these errors were encountered:
I might be missing something very basic, but I cannot seem to find a way to get the dependencies of a (pkg-config) dependency. I.e. I would like to be able to parse the contents of the "Requires:" field. Currently I work this around by using
run_command('pkg-config', '--print-requires', ...)
, e.g. see here.Is this already supported? Or is it something that is not recommended to do?
My use case and context:
My project (wstroke, a gesture plugin for Wayfire) depends on Wayfire, and transitively on the wlroots library. Currently, there are multiple versions of wlroots that can be installed in parallel, providing separate pkg-config files (
wlroots
andwlroots-0.18
). My code can be built with either, but it should use the same version that Wayfire uses. Of course, this is achieved by adding Wayfire as a dependency which will pull in the correct version of wlroots as well.My problem is that beyond the plugin library, I also want to generate a separate executable (see here) which should only depend on wlroots and not on Wayfire (but of course the same version of wlroots as the plugin library). So I need to find out which dependency is used by Wayfire and include that.
My current solution works, but I'm wondering if there is a better way to achieve this.
Thanks!
The text was updated successfully, but these errors were encountered: