summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-10-20 22:01:05 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-10-21 23:15:29 +0200
commit4dddfd622977f84f0cf41847aec9e728d02bec65 (patch)
tree27bc4ceca8cd18bd3583107b2213368134b931f5 /meson.build
parente8dc8edad7cdf194091f0479b70b154e872f57ef (diff)
uri: New module
Decode URI encoded string, validating both hex and that encoded data is valid UTF-8.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build25
1 files changed, 25 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 93e6534..fef8e92 100644
--- a/meson.build
+++ b/meson.build
@@ -230,6 +230,20 @@ sha1_dep = declare_dependency(
dependencies: [sha1_inner_dep],
)
+uri_lib = library(
+ 'uri',
+ sources: [
+ 'src/u.hh',
+ 'src/u8.hh',
+ 'src/uri.cc',
+ 'src/uri.hh',
+ ],
+ include_directories: inc,
+)
+uri_dep = declare_dependency(
+ link_with: uri_lib,
+)
+
websocket_lib = library(
'websocket',
sources: [
@@ -259,6 +273,7 @@ bluetooth_jukebox = executable(
json_dep,
looper_dep,
signals_dep,
+ uri_dep,
websocket_dep,
],
)
@@ -409,6 +424,16 @@ test('sha1', executable(
],
))
+test('uri', executable(
+ 'test_uri',
+ sources: ['test/uri.cc'],
+ include_directories: inc,
+ dependencies : [
+ uri_dep,
+ test_dependencies,
+ ],
+))
+
run_clang_tidy = find_program('run-clang-tidy', required: false)
if run_clang_tidy.found()