From d164a2bf09230a04c38f3354e3a268f95d2260fd Mon Sep 17 00:00:00 2001 From: Evgenii Sopov Date: Sat, 18 Jan 2020 17:16:25 +0700 Subject: [PATCH] Added wsjcpp.yml: C++ Source Package Manager --- .gitignore | 3 +++ README.md | 2 ++ wsjcpp.yml | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 wsjcpp.yml diff --git a/.gitignore b/.gitignore index 086e855c..3bca6b87 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,9 @@ me.nlohmann.json.docset benchmarks/files/numbers/*.json +.wsjcpp-logs/* +.wsjcpp/* + .idea cmake-build-debug diff --git a/README.md b/README.md index f56ff205..4a69bcd5 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,8 @@ If you are using [MSYS2](http://www.msys2.org/), your can use the [mingw-w64-nlo If you are using [`build2`](https://build2.org), you can use the [`nlohmann-json`](https://cppget.org/nlohmann-json) package from the public repository http://cppget.org or directly from the [package's sources repository](https://github.com/build2-packaging/nlohmann-json). In your project's `manifest` file, just add `depends: nlohmann-json` (probably with some [version constraints](https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-add-remove-deps)). If you are not familiar with using dependencies in `build2`, [please read this introduction](https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml). Please file issues [here](https://github.com/build2-packaging/nlohmann-json) if you experience problems with the packages. +If you are using [`wsjcpp`](http://wsjcpp.org), you can use the command `wsjcpp install "https://github.com/nlohmann/json:develop"` to get the latest version. Note you can change the branch ":develop" to an existing tag or another branch. + ## Examples Beside the examples below, you may want to check the [documentation](https://nlohmann.github.io/json/) where each function contains a separate code example (e.g., check out [`emplace()`](https://nlohmann.github.io/json/classnlohmann_1_1basic__json_a5338e282d1d02bed389d852dd670d98d.html#a5338e282d1d02bed389d852dd670d98d)). All [example files](https://github.com/nlohmann/json/tree/develop/doc/examples) can be compiled and executed on their own (e.g., file [emplace.cpp](https://github.com/nlohmann/json/blob/develop/doc/examples/emplace.cpp)). diff --git a/wsjcpp.yml b/wsjcpp.yml new file mode 100644 index 00000000..32027a43 --- /dev/null +++ b/wsjcpp.yml @@ -0,0 +1,23 @@ +wsjcpp_version: "v0.1.1" +cmake_minimum_required: "3.0" +cmake_cxx_standard: "11" +name: "nlohmann/json" +version: "v3.7.3" +description: "JSON for Modern C++" +issues: "https://github.com/nlohmann/json/issues" +keywords: + - "c++" + - "json" + +repositories: + - type: main + url: "https://github.com/nlohmann/json" + +authors: + - name: "Niels Lohmann" + email: "mail@nlohmann.me" + +distribution: + - source-file: "single_include/nlohmann/json.hpp" + target-file: "json.hpp" + type: "source-code"