mirror of
https://github.com/nlohmann/json.git
synced 2026-10-01 05:23:47 +07:00
The new single header goes through the same checks and install steps as json.hpp and json_fwd.hpp: - cmake/ci.cmake: ci_test_amalgamation regenerates, formats, and compares json_view.hpp as well - check_amalgamation.yml: the pull request check does the same; it runs develop's tools, so it needs config_json_view.json on develop first - meson.build: installs single_include/nlohmann/json_view.hpp - gen_bazel_build_file.cmake, BUILD.bazel: json_view.hpp joins the single-header target; the glob of the other target already covers the new headers - labeler.yml: an "aspect: json_view" label for the header, its detail/view headers, tests, and documentation The CMake install rules for include/ and single_include/, the REUSE catch-all, and Package.swift cover the new files without changes. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
26 lines
706 B
Meson
26 lines
706 B
Meson
project('nlohmann_json',
|
|
'cpp',
|
|
version : '3.12.0',
|
|
license : 'MIT',
|
|
)
|
|
|
|
nlohmann_json_dep = declare_dependency(
|
|
include_directories: include_directories('single_include')
|
|
)
|
|
|
|
nlohmann_json_multiple_headers = declare_dependency(
|
|
include_directories: include_directories('include')
|
|
)
|
|
|
|
if not meson.is_subproject()
|
|
install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann')
|
|
install_headers('single_include/nlohmann/json_fwd.hpp', subdir: 'nlohmann')
|
|
install_headers('single_include/nlohmann/json_view.hpp', subdir: 'nlohmann')
|
|
|
|
pkgc = import('pkgconfig')
|
|
pkgc.generate(name: 'nlohmann_json',
|
|
version: meson.project_version(),
|
|
description: 'JSON for Modern C++'
|
|
)
|
|
endif
|