From dad0aaa9b33a5a217ac115334a94fe299dce9e08 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 10 Oct 2025 10:01:01 +0200 Subject: Add bluetooth module Can't really do anything yet, but finds the bluetooth adapter and registers an agent to make it pairable. --- meson.build | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 6977765..ae82f44 100644 --- a/meson.build +++ b/meson.build @@ -68,6 +68,8 @@ io_lib = library( 'src/io.hh', 'src/unique_fd.cc', 'src/unique_fd.hh', + 'src/unique_pipe.cc', + 'src/unique_pipe.hh', ], include_directories: inc, ) @@ -149,6 +151,34 @@ http_dep = declare_dependency( dependencies: [buffer_dep, logger_dep, looper_dep], ) +bt_lib = library( + 'bt', + sources: [ + 'src/bt.cc', + 'src/bt.hh', + ], + include_directories: inc, + dependencies: [logger_dep, looper_dep, dbus_dep], +) +bt_dep = declare_dependency( + link_with: bt_lib, + dependencies: [logger_dep, looper_dep, dbus_dep], +) + +signals_lib = library( + 'signals', + sources: [ + 'src/signals.cc', + 'src/signals.hh', + ], + include_directories: inc, + dependencies: [io_dep, looper_dep], +) +signals_dep = declare_dependency( + link_with: signals_lib, + dependencies: [io_dep, looper_dep], +) + bluetooth_jukebox = executable( 'bluetooth-jukebox', sources: [ @@ -158,9 +188,11 @@ bluetooth_jukebox = executable( install : true, dependencies : [ args_dep, + bt_dep, cfg_dep, http_dep, looper_dep, + signals_dep, ], ) -- cgit v1.2.3-70-g09d2