-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
release: add singleinclude and meson.build to include.zip #1694
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still waiting for a review. ;) |
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 to me.
Before I merge this, I need to understand the role of this change. I am not using Meson myself, so I do not know whether it is actually needed. The README states:
Why do we need this change here in this repository? |
That is covered by the second point from #1672 |
I see. Though it may be unwise to rely on third parties for Meson, I will also not be able to maintain the package. Could you add another sentence to the README describing how to still use the library with Meson if you do not use the provided package? |
I added a couple blurbs to the README, including a mention of pkg-config. Since meson's documentation exposes a preference for pkg-config, and the meson documentation on subprojects makes reference to pkg-config dependencies with subproject fallbacks, meson users will likely be interested in looking for pkg-config support. So the pkg-config blurb lets them know that pkg-config support can be available, and thus nlohmann_json is eligible to use that dependency fallback stuff. But from a simple perspective, it is as simple as "use this source tree" or "use the include.zip which is equal to this subtree minus a lot of non-release files". |
Okay, force pushed to include Table of Contents links to the new sections I added. |
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.
I do not think the Meson documentation should be so prominent. Could you please move it to the "Package Managers" section?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@nlohmann What happened? |
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.
Please have a look at the comments.
This serves as a minimal release-only way to embed json into a project. Add meson support to this directly, to make it usable standalone as a meson subproject. Implements #1672
Also call out to the guidelines for using pkg-config dependencies first, and reference it for other build systems as well. Although the possibility of installing with a pkg-config file is somewhat hidden away in the meson docs, it's been deemed less invasive due to not distracting away from cmake. So it will have to do.
Okay, hopefully this should be good for now. |
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 to me.
🔖 Release itemThis issue/PR will be part of the next release of the library. This template helps preparing the release notes. Type
Description
|
Thanks! |
This serves as a minimal release-only way to embed json into a project. Add meson support to this directly, to make it usable standalone as ameson subproject.
Fixes #1672
Pull request checklist
Read the Contribution Guidelines for detailed information.
include/nlohmann
directory, runmake amalgamate
to create the single-header filesingle_include/nlohmann/json.hpp
. The whole process is described here.