From 4f6e76493fb74f5385d5a14dce3a01c9901802ed Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 7 Oct 2025 19:58:28 +0200 Subject: paths: New module Path utilities (doh) --- meson.build | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index f98276c..291b3f9 100644 --- a/meson.build +++ b/meson.build @@ -83,6 +83,20 @@ str_lib = library( ) str_dep = declare_dependency(link_with: str_lib) +paths_lib = library( + 'paths', + sources: [ + 'src/paths.cc', + 'src/paths.hh', + ], + include_directories: inc, + dependencies: [str_dep], +) +paths_dep = declare_dependency( + link_with: paths_lib, + dependencies: [str_dep], +) + bluetooth_jukebox = executable( 'bluetooth-jukebox', sources: [ @@ -127,6 +141,16 @@ io_test_helper_dep = declare_dependency( dependencies: io_dep, ) +testenv_lib = library( + 'testenv', + sources: [ + 'test/testenv.cc', + 'test/testenv.hh', + ], + include_directories: inc, +) +testenv_dep = declare_dependency(link_with: testenv_lib) + test('line', executable( 'test_line', sources: ['test/line.cc'], @@ -169,6 +193,17 @@ test('buffer', executable( ], )) +test('paths', executable( + 'test_paths', + sources: ['test/paths.cc'], + include_directories: inc, + dependencies : [ + paths_dep, + test_dependencies, + testenv_dep, + ], +)) + run_clang_tidy = find_program('run-clang-tidy', required: false) if run_clang_tidy.found() -- cgit v1.2.3-70-g09d2