diff options
Diffstat (limited to 'src/lib/alsa')
-rw-r--r-- | src/lib/alsa/meson.build | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/alsa/meson.build b/src/lib/alsa/meson.build new file mode 100644 index 000000000..cf47a012b --- /dev/null +++ b/src/lib/alsa/meson.build @@ -0,0 +1,31 @@ +if not is_linux + alsa_dep = dependency('', required: false) + subdir_done() +endif + +libasound_dep = dependency('alsa', version: '>= 0.9.0', required: get_option('alsa')) +if not libasound_dep.found() + alsa_dep = dependency('', required: false) + subdir_done() +endif + +conf.set('ENABLE_ALSA', true) + +alsa = static_library( + 'alsa', + 'Version.cxx', + 'AllowedFormat.cxx', + 'HwSetup.cxx', + 'NonBlock.cxx', + include_directories: inc, + dependencies: [ + libasound_dep, + ], +) + +alsa_dep = declare_dependency( + link_with: alsa, + dependencies: [ + event_dep, + ], +) |