mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
meson: build tinyalsa plugin
This commit is contained in:
parent
807227cef2
commit
97cc93d621
3 changed files with 31 additions and 0 deletions
|
@ -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('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('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('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('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('uvch264', type : 'feature', value : 'auto', description : 'UVC compliant H.264 camera source plugin')
|
||||||
option('vcd', type : 'feature', value : 'auto', description : 'VCD source plugin')
|
option('vcd', type : 'feature', value : 'auto', description : 'VCD source plugin')
|
||||||
|
|
|
@ -17,6 +17,7 @@ subdir('kms')
|
||||||
subdir('msdk')
|
subdir('msdk')
|
||||||
subdir('opensles')
|
subdir('opensles')
|
||||||
subdir('shm')
|
subdir('shm')
|
||||||
|
subdir('tinyalsa')
|
||||||
subdir('uvch264')
|
subdir('uvch264')
|
||||||
subdir('vcd')
|
subdir('vcd')
|
||||||
#subdir('vdpau')
|
#subdir('vdpau')
|
||||||
|
|
29
sys/tinyalsa/meson.build
Normal file
29
sys/tinyalsa/meson.build
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
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
|
Loading…
Reference in a new issue