summaryrefslogtreecommitdiff
path: root/src/mixer/plugins/meson.build
blob: 351ce18573a3a023477a6eb820bda8905ace314e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
mixer_plugins_sources = [
  'NullMixerPlugin.cxx',
  'SoftwareMixerPlugin.cxx',
]

if alsa_dep.found()
  mixer_plugins_sources += [
    'AlsaMixerPlugin.cxx',
    'volume_mapping.c',
  ]
endif

if is_haiku
  mixer_plugins_sources += 'HaikuMixerPlugin.cxx'
endif

if enable_oss
  mixer_plugins_sources += 'OssMixerPlugin.cxx'
endif

if is_darwin
  mixer_plugins_sources += 'OSXMixerPlugin.cxx'
endif

if pulse_dep.found()
  mixer_plugins_sources += 'PulseMixerPlugin.cxx'
endif

if libsndio_dep.found()
  mixer_plugins_sources += 'SndioMixerPlugin.cxx'
endif

if is_windows
  mixer_plugins_sources += [
    'WinmmMixerPlugin.cxx',
    'WasapiMixerPlugin.cxx',
  ]
endif

if is_android
  mixer_plugins_sources += 'AndroidMixerPlugin.cxx'
endif

mixer_plugins = static_library(
  'mixer_plugins',
  mixer_plugins_sources,
  include_directories: inc,
  dependencies: [
    alsa_dep,
    pulse_dep,
    libsndio_dep,
  ]
)

mixer_plugins_dep = declare_dependency(
  link_with: mixer_plugins,
  dependencies: [
    config_dep,
  ],
)