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