From 62a4abb9bf6551417130c3c6f9bba147930895ef Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 7 Oct 2025 20:56:33 +0200 Subject: cfg: New module Reads config files --- meson.build | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 291b3f9..9507b31 100644 --- a/meson.build +++ b/meson.build @@ -97,6 +97,20 @@ paths_dep = declare_dependency( dependencies: [str_dep], ) +cfg_lib = library( + 'cfg', + sources: [ + 'src/cfg.cc', + 'src/cfg.hh', + ], + include_directories: inc, + dependencies: [io_dep, paths_dep, str_dep], +) +cfg_dep = declare_dependency( + link_with: cfg_lib, + dependencies: [io_dep, paths_dep, str_dep], +) + bluetooth_jukebox = executable( 'bluetooth-jukebox', sources: [ @@ -106,8 +120,7 @@ bluetooth_jukebox = executable( install : true, dependencies : [ args_dep, - io_dep, - str_dep, + cfg_dep, ], ) @@ -141,6 +154,16 @@ io_test_helper_dep = declare_dependency( dependencies: io_dep, ) +testdir_lib = library( + 'testdir', + sources: [ + 'test/testdir.cc', + 'test/testdir.hh', + ], + include_directories: inc, +) +testdir_dep = declare_dependency(link_with: testdir_lib) + testenv_lib = library( 'testenv', sources: [ @@ -204,6 +227,18 @@ test('paths', executable( ], )) +test('cfg', executable( + 'test_cfg', + sources: ['test/cfg.cc'], + include_directories: inc, + dependencies : [ + cfg_dep, + test_dependencies, + testdir_dep, + testenv_dep, + ], +)) + run_clang_tidy = find_program('run-clang-tidy', required: false) if run_clang_tidy.found() -- cgit v1.2.3-70-g09d2