summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-10-19 00:08:49 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-10-19 00:22:11 +0200
commit48bdfbeb03319eb21b5e73e69f525ba298af975c (patch)
tree9d189fe570b408e27d82bd434a83b9f0a3bae18e /meson.build
parentdf56d2eb26b34b0af590f3aedfda7896f4b103dd (diff)
json: Add new module
Only has methods for writing JSON for now. Will let you create invalid json, but should assert if you do.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build22
1 files changed, 22 insertions, 0 deletions
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'],