You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, create a [vcpkg.json manifest](https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-json),
60
+
enabling manifest mode and adding JsonCpp to the manifest's dependencies list.
61
+
62
+
```sh
63
+
vcpkg new --application
64
+
vcpkg add port jsoncpp
65
+
```
66
+
67
+
> [!NOTE]: you can use vcpkg in either classic mode or manifest mode (recommended).
68
+
69
+
#### Classic mode
70
+
71
+
If your project does not have a `vcpkg.json`,
72
+
your project is in [Classic mode](https://learn.microsoft.com/en-us/vcpkg/concepts/classic-mode)
73
+
you can install JsonCpp by directly invoking the `install` command:
74
+
75
+
```sh
76
+
vcpkg install jsoncpp
77
+
```
52
78
53
-
The JsonCpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
79
+
### Manifest mode
80
+
81
+
If your project *does* have a vcpkg.json manifest, your project is in [Manifest mode](https://learn.microsoft.com/en-us/vcpkg/concepts/manifest-mode)
82
+
and you need to add JsonCpp to your package manifest dependencies, then invoke
83
+
install with no arguments.
84
+
85
+
```sh
86
+
vcpkg add port jsoncpp
87
+
vcpkg install
88
+
```
89
+
90
+
Example manifest:
91
+
92
+
```sh
93
+
{
94
+
"name": "best-app-ever",
95
+
"dependencies": [ "jsoncpp" ],
96
+
}
97
+
```
98
+
99
+
> [!NOTE] The JsonCpp port in vcpkg is kept up to date by Microsoft team members and community contributors.
100
+
> If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg)
101
+
> on the vcpkg repository.
102
+
103
+
### Conan package manager
104
+
105
+
You can download and install JsonCpp using the [Conan](https://conan.io/)
See the [Wiki entry on Amalgamated Source](https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated)).
57
119
58
120
### The Meson Build System
59
-
If you are using the [Meson Build System](http://mesonbuild.com), then you can get a wrap file by downloading it from [Meson WrapDB](https://wrapdb.mesonbuild.com/jsoncpp), or simply use `meson wrap install jsoncpp`.
121
+
122
+
If you are using the [Meson Build System](http://mesonbuild.com), then you can
123
+
get a wrap file by downloading it from [Meson WrapDB](https://mesonbuild.com/Wrapdb-projects.html),
124
+
or simply use `meson wrap install jsoncpp`.
60
125
61
126
### Other ways
62
-
If you have trouble, see the [Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a question as an Issue.
127
+
128
+
If you have trouble, see the
129
+
[Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a question
130
+
as an Issue.
63
131
64
132
## License
65
133
66
-
See the `LICENSE` file for details. In summary, JsonCpp is licensed under the
67
-
MIT license, or public domain if desired and recognized in your jurisdiction.
134
+
See the [LICENSE](./LICENSE) file for details. In summary, JsonCpp is licensed
135
+
under the MIT license, or public domain if desired and recognized in your
0 commit comments