mixer/meson.build: split libmixer_api from libmixer_glue

This commit is contained in:
Max Kellermann 2022-11-29 08:57:42 +01:00
parent eb6c649d47
commit 4b5c8d1f3e
3 changed files with 19 additions and 4 deletions

View File

@ -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,
],
)

View File

@ -46,6 +46,7 @@ mixer_plugins = static_library(
mixer_plugins_sources,
include_directories: inc,
dependencies: [
mixer_api_dep,
alsa_dep,
pulse_dep,
libsndio_dep,

View File

@ -622,7 +622,7 @@ if alsa_dep.found()
'read_mixer.cxx',
include_directories: inc,
dependencies: [
mixer_glue_dep,
mixer_plugins_dep,
],
)
endif