From 73553802f943a99b62c6c38dc30e7cf2d1377960 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Sun, 21 Oct 2018 09:58:35 +0000 Subject: [PATCH] Add options for pulseaudio and libnl --- meson.build | 6 +++--- meson_options.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 meson_options.txt diff --git a/meson.build b/meson.build index 1833440c..986b423b 100644 --- a/meson.build +++ b/meson.build @@ -34,9 +34,9 @@ wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots']) gtkmm = dependency('gtkmm-3.0') jsoncpp = dependency('jsoncpp') sigcpp = dependency('sigc++-2.0') -libnl = dependency('libnl-3.0', required: false) -libnlgen = dependency('libnl-genl-3.0', required: false) -libpulse = dependency('libpulse', required: false) +libnl = dependency('libnl-3.0', required: get_option('libnl')) +libnlgen = dependency('libnl-genl-3.0', required: get_option('libnl')) +libpulse = dependency('libpulse', required: get_option('pulseaudio')) src_files = files( 'src/factory.cpp', diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 00000000..2d493112 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1,2 @@ +option('libnl', type: 'feature', value: 'auto', description: 'Enable libnl support for network related features') +option('pulseaudio', type: 'feature', value: 'auto', description: 'Enable support for pulseaudio')