This commit is contained in:
Paweł Kozubal 2025-02-27 14:29:44 -05:00 committed by GitHub
commit ea938d034e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 57 additions and 0 deletions

View File

@ -1306,6 +1306,27 @@ Use your favorite [**package manager**](https://json.nlohmann.me/integration/pac
The library is part of many package managers. See the [**documentation**](https://json.nlohmann.me/integration/package_managers/) for detailed descriptions and examples.
If you are using [PlatformIO](https://platformio.org/) you can add this repo directly to your `platformio.ini` like this:
```ini
[env:your_env_name]
lib_deps =
nlohmann-json=https://github.com/nlohmann/json.git
```
or you can include it as a dependency in your `library.json` like this:
```json
"dependencies": [
{
"name": "nlohmann-json",
"version": "https://github.com/nlohmann/json.git"
}
]
```
### Pkg-config
If you are using bare Makefiles, you can use `pkg-config` to generate the include flags that point to where the library is installed:

36
library.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "nlohmann-json",
"description": "JSON for Modern C++",
"keywords": [
"json",
"serialization",
"deserialization",
"parser",
"generator",
"C++",
"modern"
],
"authors": [
{
"name": "Niels Lohmann",
"email": "mail@nlohmann.me",
"url": "https://github.com/nlohmann"
}
],
"repository": {
"type": "git",
"url": "https://github.com/nlohmann/json.git"
},
"homepage": "https://nlohmann.github.io/json/",
"license": "MIT",
"dependencies": [],
"frameworks": "*",
"platforms": "*",
"examples": [
"https://github.com/nlohmann/json/tree/develop/docs/examples"
],
"build": {
"srcFilter": ["-<**/*>"],
"includeDir": "single_include"
}
}