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

PlatformIO integration #4015

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

PlatformIO integration #4015

wants to merge 6 commits into from

Conversation

pidpawel
Copy link

First of all thank you for this amazing library. I really do enjoy working with it.

Secondly this pull request is my stab at adding this library to a PlatformIO environment. PlatformIO is a tool that streamlines environment setup for embedded development. It takes care of things like getting proper compiler variant, setting up all the required compiler flags, linker scripts, etc. It even does some IDE setup, if needed. If that weren't enough it also manages libraries and project dependencies reasonably well. This is where this PR comes in.

Each of the PlatformIO libraries needs a library.json file (which this PR includes) and may be uploaded to PlatformIO's registry (https://registry.platformio.org/) (which this PR does not). Technically uploading to said registry is recommended and makes the libraries slightly easier for users to use, but it requires setting up accounts and regular uploads to said service (which would require a CI changes to be sustainable) so I decided not to include it right now. If the current solution will gain traction among users I can help with setting all the "proper" channels.

I also edited README.md - my changes are in the section Package managers despite PlatformIO technically being closer to a build system due to the said "registry" feature above, which I hope this library make into one day.

Sorry for the multiple commits in the PR - I kinda couldn't resist testing the GitHub's online editor for a single JSON ;-) file change.

Let me know what you think and have a wonderful day
Paweł

@coveralls
Copy link

Coverage Status

Coverage: 100.0%. Remained the same when pulling 0f2457e on pidpawel:develop into 6af826d on nlohmann:develop.

@@ -0,0 +1,36 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this additional file really needed? I don't want to spam my repository.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I'm aware - it is :(

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I confirm. Without the proposed config, PIO tries to build files in all subfolders (including examples) and ends with errors. As a temporary workaround, I had to make a local copy of the headers.

jcracine-cimeq added a commit to cimeq/json that referenced this pull request Apr 15, 2024
Note(s):
	This is based on the pull-request found in the link below.
	nlohmann#4015

Changes to be committed:
	modified:   README.md
	new file:   library.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants