Commit 97cc93d6 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠 Committed by Sebastian Dröge
Browse files

meson: build tinyalsa plugin

parent 807227ce
......@@ -130,6 +130,7 @@ option('soundtouch', type : 'feature', value : 'auto', description : 'Audio pitc
option('spandsp', type : 'feature', value : 'auto', description : 'Packet loss concealment audio plugin')
option('srt', type : 'feature', value : 'auto', description : 'Secure, Reliable, Transport client/server network source/sink plugin')
option('srtp', type : 'feature', value : 'auto', description : 'Secure RTP codec plugin')
option('tinyalsa', type : 'feature', value : 'auto', description : 'TinyALSA plugin')
option('ttml', type : 'feature', value : 'auto', description : 'TTML subtitle parser and renderer plugin')
option('uvch264', type : 'feature', value : 'auto', description : 'UVC compliant H.264 camera source plugin')
option('vcd', type : 'feature', value : 'auto', description : 'VCD source plugin')
......
......@@ -17,6 +17,7 @@ subdir('kms')
subdir('msdk')
subdir('opensles')
subdir('shm')
subdir('tinyalsa')
subdir('uvch264')
subdir('vcd')
#subdir('vdpau')
......
if get_option('tinyalsa').disabled()
subdir_done()
endif
have_tinyalsa = cc.has_header ('tinyalsa/asoundlib.h')
if not have_tinyalsa
tinyalsa_dep = cc.find_library('tinyalsa', required: false)
have_tinyalsa = tinyalsa_dep.found()
endif
if not have_tinyalsa
tinyalsa_dep = dependency('tinyalsa', required: get_option('tinyalsa'),
fallback: ['tinyalsa', 'tinyalsa_dep'])
have_tinyalsa = tinyalsa_dep.found()
endif
if have_tinyalsa
gsttinyalsa = library('gsttinyalsa',
'tinyalsa.c', 'tinyalsasink.c',
c_args: gst_plugins_bad_args,
include_directories: [configinc],
dependencies : [gstbase_dep, gstaudio_dep, tinyalsa_dep],
install: true,
install_dir: plugins_install_dir
)
pkgconfig.generate(gsttinyalsa, install_dir: plugins_pkgconfig_install_dir)
elif get_option('tinyalsa').enabled()
error('tinyalsa plugin enabled but TinyALSA library or headers not found')
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment