diff --git a/src/mixer/meson.build b/src/mixer/meson.build index 2227c8d45..0a32c2983 100644 --- a/src/mixer/meson.build +++ b/src/mixer/meson.build @@ -1,15 +1,29 @@ -mixer_api_dep = declare_dependency() +mixer_api = static_library( + 'mixer_api', + 'Mixer.cxx', + 'Control.cxx', + include_directories: inc, + dependencies: [ + thread_dep, + ], +) + +mixer_api_dep = declare_dependency( + link_with: mixer_api, + dependencies: [ + thread_dep, + ], +) subdir('plugins') mixer_glue = static_library( 'mixer_glue', - 'Mixer.cxx', - 'Control.cxx', 'Type.cxx', 'All.cxx', include_directories: inc, dependencies: [ + mixer_api_dep, log_dep, ], ) diff --git a/src/mixer/plugins/meson.build b/src/mixer/plugins/meson.build index 153e67bde..a482b141f 100644 --- a/src/mixer/plugins/meson.build +++ b/src/mixer/plugins/meson.build @@ -46,6 +46,7 @@ mixer_plugins = static_library( mixer_plugins_sources, include_directories: inc, dependencies: [ + mixer_api_dep, alsa_dep, pulse_dep, libsndio_dep, diff --git a/test/meson.build b/test/meson.build index 8433ee069..8970d2e7f 100644 --- a/test/meson.build +++ b/test/meson.build @@ -622,7 +622,7 @@ if alsa_dep.found() 'read_mixer.cxx', include_directories: inc, dependencies: [ - mixer_glue_dep, + mixer_plugins_dep, ], ) endif