From 48bdfbeb03319eb21b5e73e69f525ba298af975c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 19 Oct 2025 00:08:49 +0200 Subject: json: Add new module Only has methods for writing JSON for now. Will let you create invalid json, but should assert if you do. --- meson.build | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 2b74a48..b17ed18 100644 --- a/meson.build +++ b/meson.build @@ -179,6 +179,18 @@ signals_dep = declare_dependency( dependencies: [io_dep, looper_dep], ) +json_lib = library( + 'json', + sources: [ + 'src/json.cc', + 'src/json.hh', + ], + include_directories: inc, +) +json_dep = declare_dependency( + link_with: json_lib, +) + base64_lib = library( 'base64', sources: [ @@ -323,6 +335,16 @@ test('cfg', executable( ], )) +test('json', executable( + 'test_json', + sources: ['test/json.cc'], + include_directories: inc, + dependencies : [ + json_dep, + test_dependencies, + ], +)) + test('base64', executable( 'test_base64', sources: ['test/base64.cc'], -- cgit v1.2.3-70-g09d2