mirror of
https://github.com/nlohmann/json.git
synced 2026-08-17 06:33:18 +00:00
deploy: e0f8cdfb7f
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
libs =
|
||||
import libs = nlohmann-json%lib{json}
|
||||
|
||||
exe{example}: {hxx ixx txx cxx}{**} $libs testscript
|
||||
|
||||
cxx.poptions =+ "-I$out_root" "-I$src_root"
|
||||
@@ -0,0 +1,10 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << std::setw(4) << json::meta() << std::endl;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
name: example
|
||||
version: 0.1.0-a.0.z
|
||||
language: c++
|
||||
summary: example C++ executable
|
||||
license: other: proprietary ; Not free/open source.
|
||||
description-file: README.md
|
||||
url: https://example.org/example
|
||||
email: your@emailprovider.com
|
||||
#build-error-email: your@emailprovider.com
|
||||
depends: * build2 >= 0.16.0
|
||||
depends: * bpkg >= 0.16.0
|
||||
#depends: libhello ^1.0.0
|
||||
|
||||
depends: nlohmann-json
|
||||
@@ -0,0 +1,11 @@
|
||||
: 1
|
||||
summary: example project repository
|
||||
|
||||
:
|
||||
role: prerequisite
|
||||
location: https://pkg.cppget.org/1/stable
|
||||
#trust: ...
|
||||
|
||||
#:
|
||||
#role: prerequisite
|
||||
#location: https://git.build2.org/hello/libhello.git
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
: json basics
|
||||
:
|
||||
$* >>~/EOO/
|
||||
{
|
||||
"compiler": {
|
||||
/ "c\+\+": "\d+",/
|
||||
/ "family": "[\w\d]+",/
|
||||
/ "version": \d+/
|
||||
},
|
||||
/ "copyright": "\(C\) 2013-\d+ Niels Lohmann",/
|
||||
"name": "JSON for Modern C++",
|
||||
/ "platform": "[\w\d]+",/
|
||||
"url": "https://github.com/nlohmann/json",
|
||||
"version": {
|
||||
"major": 3,
|
||||
/ "minor": \d+,/
|
||||
/ "patch": \d+,/
|
||||
/ "string": "3\.\d+\.\d+"/
|
||||
}
|
||||
}
|
||||
EOO
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user