summaryrefslogtreecommitdiff
path: root/sys/opensles/meson.build
blob: 75bdb6c5d91d0971ab4414c6618eeb98e37f0aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
opensles_sources = [
  'openslescommon.c',
  'openslesringbuffer.c',
  'openslessink.c',
  'openslessrc.c',
  'opensles.c',
]

opensles_option = get_option('opensles')
if opensles_option.disabled()
  subdir_done()
endif

have_opensles_h = cc.has_header('SLES/OpenSLES.h', required : false)
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)
  pkgconfig.generate(gstopensles, install_dir : plugins_pkgconfig_install_dir)
endif