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

get_libname: Support a list of libraries in libraries.json #225

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

Flamefire
Copy link
Collaborator

Currently the script expects libraries.json to contain a dict with the library metadata.
However it can contain information about multiple sub-libraries, e.g. in Boost.Utility or Boost.Functional in which case the top-level struct is a list containing a dict for each sub-library. It is also possible to wrap the single dict in a list with a single item which should be equivalent to having the dict at the top-level.

Modify the script to detect such a list and work on the first entry.

See boostorg/math#1061 (comment) for motivation of this change

Currently the script expects `libraries.json` to contain a dict with the
library metadata.
However it can contain information about multiple sub-libraries,
e.g. in Boost.Utility or Boost.Functional in which case the top-level
struct is a list containing a dict for each sub-library.
It is also possible to wrap the single dict in a list with a single item
which should be equivalent to having the dict at the top-level.

Modify the script to detect such a list and work on the first entry.
@Flamefire Flamefire requested a review from sdarwin December 23, 2023 10:25
@Flamefire Flamefire merged commit ea6b3a1 into master Feb 7, 2024
60 checks passed
@Flamefire Flamefire deleted the multi-lib-get_libname branch February 7, 2024 12:59
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

Successfully merging this pull request may close these issues.

1 participant