From 4dddfd622977f84f0cf41847aec9e728d02bec65 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 20 Oct 2025 22:01:05 +0200 Subject: uri: New module Decode URI encoded string, validating both hex and that encoded data is valid UTF-8. --- meson.build | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'meson.build') 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() -- cgit v1.2.3-70-g09d2