summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2020-12-14 08:48:11 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2020-12-14 19:48:06 +0000
commitd285b00a168e830c1e837513b7442a48c69d9937 (patch)
tree90d9e20c2838a67a3d50c5d05a18901d0031b289 /meson.build
parente3f2c25face8f964827f75dbc8fd766fc02aaf6d (diff)
build-sys: meson: change oss-output boolean to Meson feature
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/437>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 3 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 3adb876ff..437fc802c 100644
--- a/meson.build
+++ b/meson.build
@@ -616,8 +616,7 @@ if x11_dep.found()
endif
# Module dependencies
-if get_option('oss-output')
- assert(cc.has_header('sys/soundcard.h'), 'Need header file for OSS support')
+if cc.has_header('sys/soundcard.h', required: get_option('oss-output'))
cdata.set('HAVE_OSS_OUTPUT', 1)
cdata.set('HAVE_OSS_WRAPPER', 1)
cdata.set('PULSEDSP_LOCATION', pulsedsp_location)
@@ -811,8 +810,8 @@ summary = [
'',
'Enable memfd shared memory: @0@'.format(cdata.has('HAVE_MEMFD')),
'Enable X11: @0@'.format(x11_dep.found()),
- 'Enable OSS Output: @0@'.format(get_option('oss-output')),
-# 'Enable OSS Wrapper: @0@'.format(${ENABLE_OSS_WRAPPER}),
+ 'Enable OSS Output: @0@'.format(cdata.has('HAVE_OSS_OUTPUT')),
+ 'Enable OSS Wrapper: @0@'.format(cdata.has('HAVE_OSS_WRAPPER')),
# 'Enable EsounD: @0@'.format(${ENABLE_ESOUND}),
'Enable Alsa: @0@'.format(alsa_dep.found()),
# 'Enable CoreAudio: @0@'.format(${ENABLE_COREAUDIO}),