build with Meson instead of autotools
So long, autotools! This is my last MPD related project to migrate away from it. It has its strengths, but also very obvious weaknesses and weirdnesses. Today, many of its quirks are not needed anymore, and are cumbersome and slow. Now welcome our new Meson overlords!
This commit is contained in:
15
src/lib/oss/meson.build
Normal file
15
src/lib/oss/meson.build
Normal file
@@ -0,0 +1,15 @@
|
||||
enable_oss = get_option('oss')
|
||||
if enable_oss.disabled()
|
||||
enable_oss = false
|
||||
elif enable_oss.auto() and alsa_dep.found()
|
||||
# don't bother auto-enabling OSS if ALSA is available
|
||||
enable_oss = false
|
||||
elif compiler.has_header('sys/soundcard.h') or compiler.has_header('soundcard.h')
|
||||
enable_oss = true
|
||||
elif enable_oss.auto()
|
||||
enable_oss = false
|
||||
else
|
||||
error('sys/soundcard.h not found')
|
||||
endif
|
||||
|
||||
conf.set('HAVE_OSS', enable_oss)
|
Reference in New Issue
Block a user