1opensles_sources = [ 2 'openslescommon.c', 3 'openslesringbuffer.c', 4 'openslessink.c', 5 'openslessrc.c', 6 'opensles.c', 7 'openslesplugin.c', 8] 9 10opensles_option = get_option('opensles') 11if opensles_option.disabled() 12 subdir_done() 13endif 14 15have_opensles_h = cc.has_header('SLES/OpenSLES.h') 16if not have_opensles_h and opensles_option.enabled() 17 error('opensles plugin enabled but SLES/OpenSLES.h not found') 18endif 19opensles_dep = cc.find_library('OpenSLES', required : opensles_option) 20 21if have_opensles_h and opensles_dep.found() 22 gstopensles = library('gstopensles', 23 opensles_sources, 24 c_args : gst_plugins_bad_args, 25 include_directories : [configinc], 26 dependencies : [gstaudio_dep, opensles_dep], 27 install : true, 28 install_dir : plugins_install_dir) 29 pkgconfig.generate(gstopensles, install_dir : plugins_pkgconfig_install_dir) 30 plugins += [gstopensles] 31endif 32