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

[PkgConfigDeps] Creates *.pc files for test_requires #11390

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion conan/tools/gnu/pkgconfigdeps/pkgconfigdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ def __init__(self, conanfile):
def content(self):
"""Get all the *.pc files content"""
pc_files = {}
# Get all the dependencies
host_req = self._conanfile.dependencies.host
for _, dep in host_req.items():
test_req = self._conanfile.dependencies.test
for _, dep in list(host_req.items()) + list(test_req.items()):
# Require is not used at the moment, but its information could be used,
# and will be used in Conan 2.0
dep_name = str(dep)
for pc_name, pc_content in get_pc_files_and_content(self._conanfile, dep).items():
if pc_name in pc_files:
Expand Down
Loading