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

[feature] pkg-config improved UX for custom variables #9765

Open
1 task
SSE4 opened this issue Oct 8, 2021 · 0 comments
Open
1 task

[feature] pkg-config improved UX for custom variables #9765

SSE4 opened this issue Oct 8, 2021 · 0 comments

Comments

@SSE4
Copy link
Contributor

SSE4 commented Oct 8, 2021

there is a pkg_config_custom_content property, but it uses an arbitrary string blob to insert.
it would be nice to have an improved UX to pass a dictionary of variables, just like in CMakeDeps (see #9764, #8360):

self.cpp_info.set_property("pkg_config_variables", {'datadir': '${prefix}/res'}, "pkg_config")
self.cpp_info.components["buy"].set_property("pkg_config_variables",  {'datadir': '${prefix}/res'}, "pkg_config")

a few examples in conan-center:
https://github.com/conan-io/conan-center-index/blob/master/recipes/glib/all/conanfile.py#L300
https://github.com/conan-io/conan-center-index/blob/master/recipes/wayland/all/conanfile.py#L102
https://github.com/conan-io/conan-center-index/blob/master/recipes/xorg-macros/all/conanfile.py#L73

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

No branches or pull requests

1 participant