diff --git a/README.md b/README.md index dbb3e0b1b..7243592fd 100644 --- a/README.md +++ b/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: diff --git a/library.json b/library.json new file mode 100644 index 000000000..37629c070 --- /dev/null +++ b/library.json @@ -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" + } +}