Skip to content

Commit

Permalink
Added wsjcpp.yml: C++ Source Package Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sea5kg committed Apr 10, 2020
1 parent 6121fc5 commit b79c728
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ me.nlohmann.json.docset

benchmarks/files/numbers/*.json

.wsjcpp-logs/*
.wsjcpp/*

.idea
cmake-build-debug

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ 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 for get latest version:
```
wsjcpp install "https://github.com/nlohmann/json:develop"
```
P.S.: You can change branch ":develop" to 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)).
Expand Down
23 changes: 23 additions & 0 deletions wsjcpp.yml
Original file line number Diff line number Diff line change
@@ -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: "[email protected]"

distribution:
- source-file: "single_include/nlohmann/json.hpp"
target-file: "json.hpp"
type: "source-code"

0 comments on commit b79c728

Please sign in to comment.