summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build39
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()