Merge 0f2457edfd into f3dc4684b4
This commit is contained in:
commit
ea938d034e
21
README.md
21
README.md
@ -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
36
library.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user