diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-10-07 20:56:33 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-10-19 00:13:47 +0200 |
| commit | 62a4abb9bf6551417130c3c6f9bba147930895ef (patch) | |
| tree | 51c6359faa7193e82c6fa8ee5402edb24d450ab1 /meson.build | |
| parent | 4f6e76493fb74f5385d5a14dce3a01c9901802ed (diff) | |
cfg: New module
Reads config files
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 39 |
1 files changed, 37 insertions, 2 deletions
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() |
