-
-
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
include.zip should contain meson.build #1672
Comments
Would you be interested in such a change? I could submit a PR to implement it if you'd like, but I would first like to know if it is something that you'd be willing to accept. |
Yes, PR welcome! |
Done! |
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 I made a PR but it has been languishing. Could you evaluate it and perhaps merge it? EDIT: hrm, looks like there has not been a lot of activity since around that time, so I assume this was actually because you didn't happen to have time to do much review in the last month (and it's not just me :p). I shall await further word, then. |
On the topic of versions available in Meson WrapDB, currently they only have nlohmann_json v3.3.0 and v3.4.0 available. There is a PR for v3.5.0 but it's been open since March 1 and isn't going anywhere. So even if I wanted my json-using project to install an extra copy of /usr/include/nlohmann/json.hpp, I wouldn't be able to get a recent one. |
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. |
In order to make it easier to use nlohmann_json everywhere, it would be helpful to provide a unified meson interface to the project. Currently, the choices are:
It's probably fair to say that relying on some thirdparty provider will not be a great way to stay up to date.
It would be nice to see include.zip more closely resemble the expected use of this repository, except without the large files that aren't needed when simply using it in another project. The simple solution would be to change these lines:
json/Makefile
Lines 594 to 599 in cf8251e
And add
$(AMALGAMATED_FILE) meson.build
to the zipped files.This should not have any practical effect other than to enable first-class meson wrap support. No one currently using include.zip should notice the very small extra meson.build file, and the additional single_include/ file should be negligible. (784K vs. 1.5M vs. 435M)
Sadly, meson does not have a way to check if a directory exists before declaring an include_directories on it...
The text was updated successfully, but these errors were encountered: