From 54900beb59a97e07fb2bfe6657fb41a7de5792d7 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 19 Oct 2018 16:37:05 +0700 Subject: [PATCH] meson: Make alsa optional Signed-off-by: Arnaud Rebillout --- meson.build | 2 +- meson_options.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 0d9a566ab..45eca206e 100644 --- a/meson.build +++ b/meson.build @@ -237,7 +237,7 @@ if x11_dep.found() cdata.set('HAVE_X11', 1) endif -alsa_dep = dependency('alsa', version : '>= 1.0.24', required : false) +alsa_dep = dependency('alsa', version : '>= 1.0.24', required : get_option('alsa')) if alsa_dep.found() cdata.set('HAVE_ALSA_UCM', 1) endif diff --git a/meson_options.txt b/meson_options.txt index ab9d67315..ba58b0bd8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,6 +17,9 @@ option('pulsedspdir', # Optional features +option('alsa', + type : 'feature', value : 'auto', + description : 'Optional ALSA support') option('dbus', type : 'feature', value : 'auto', description : 'Optional D-Bus support')