-
Notifications
You must be signed in to change notification settings - Fork 980
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
Add properties to MakeDeps generator #16613
Add properties to MakeDeps generator #16613
Conversation
If the receipt defines custom properties in the package_info() method then these properties should appear as make variables, too. The pattern of the make variable is CONAN_PROPERTY_{dependency_name}_{property_name}
Furthermore handle case when _properties is None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the contribution @vajdaz !
- _makefy_properties() always returns a dict - Simplification of define_multiple_variable_value jinja2 macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good I think it can be moved out of draft and merged.
Many thanks!
Co-authored-by: James <[email protected]>
It would break the makefile if we would create property values with newlines. Therefore we output a warning message and skip such properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hi @memsharded,
However, the feautre is that the generator generates make variables for the properties of the direct dependencies and their components. |
You are right. The release notes are generated automatically from the PR |
Changelog: Feature: MakeDeps generator generates make variables for dependencies and their components.
Docs: conan-io/docs#3794
Fixes #16572