-
Notifications
You must be signed in to change notification settings - Fork 981
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
[feature] Allow arbitrary sections in pkg_config .pc files #7661
Comments
this blocks conan-io/conan-center-index#3663 |
This prevents generation of proper .pc files like the gst-plugins-base's gstreamer-video-1.0.pc |
another example where it is needed: https://github.com/GNOME/gobject-introspection/blob/master/meson.build#L243 |
Thanks for the feedback. I am trying to understand the scope of this information, and why would it be exclusive to the .pc files. How is CMake dealing with this library, is it even possible to consume it at all without using those .pc files? How CMake maps those Because the recipe in ConanCenter maybe could add one of the new |
regarding gobject-introspection, the information is probably never consumed from cmake : https://ubuntu.pkgs.org/20.10/ubuntu-main-amd64/libgirepository1.0-dev_1.66.1-1_amd64.deb.html On the other hand, the pkg-config variables can be consumed from cmake (via pkg-config) using https://cmake.org/cmake/help/latest/module/FindPkgConfig.html#command:pkg_get_variable EDIT: I don't think |
Meson has a semi-portable (across build systems) way to retrieve variable from dependencies: https://mesonbuild.com/Release-notes-for-0-51-0.html#dependency-objects-now-have-a-get_variable-method and https://mesonbuild.com/Dependencies.html#arbitrary-variables-from-dependencies-that-can-be-found-multiple-ways |
pkg_config files can contain extra information, next to include paths/library paths/libs/cflags/requires/...
This is used by some programs to pass around configuration paths.
Because the generated .pc files by conan, are missing this information, configuration fails.
e.g. glib uses this. When using the files generated by conan, the following error appears:
The
gio-2.0.pc
file, installed in my system contains:The generated
gio-2.0.pc
contains:The generated pc file is missing a lot of keys, of which some are custom.
So it would be useful to add custom key/values to pkg_config files.
This feature is used by glib/glib-networking.
The text was updated successfully, but these errors were encountered: