2018-08-28 07:24:07 +00:00
|
|
|
opensles_sources = [
|
|
|
|
'openslescommon.c',
|
|
|
|
'openslesringbuffer.c',
|
|
|
|
'openslessink.c',
|
|
|
|
'openslessrc.c',
|
|
|
|
'opensles.c',
|
2021-03-26 10:00:50 +00:00
|
|
|
'openslesplugin.c',
|
2018-08-28 07:24:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
opensles_option = get_option('opensles')
|
|
|
|
if opensles_option.disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2018-11-13 08:50:26 +00:00
|
|
|
have_opensles_h = cc.has_header('SLES/OpenSLES.h')
|
2018-08-28 07:24:07 +00:00
|
|
|
if not have_opensles_h and opensles_option.enabled()
|
|
|
|
error('opensles plugin enabled but SLES/OpenSLES.h not found')
|
|
|
|
endif
|
|
|
|
opensles_dep = cc.find_library('OpenSLES', required : opensles_option)
|
|
|
|
|
|
|
|
if have_opensles_h and opensles_dep.found()
|
|
|
|
gstopensles = library('gstopensles',
|
|
|
|
opensles_sources,
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, opensles_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstopensles]
|
2018-08-28 07:24:07 +00:00
|
|
|
endif
|