• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1openaptx_sources = [
2  'openaptx-plugin.c',
3  'gstopenaptxdec.c',
4  'gstopenaptxenc.c',
5]
6
7if not get_option('openaptx').allowed()
8  subdir_done()
9endif
10
11openaptx_defines = []
12
13openaptx_dep = dependency('libfreeaptx', version : '>= 0.1.1', required : false)
14if openaptx_dep.found()
15  openaptx_defines += ['-DUSE_FREEAPTX']
16else
17  openaptx_dep = dependency('libopenaptx', version : '== 0.2.0', required : get_option('openaptx'))
18endif
19
20if openaptx_dep.found()
21  gstopenaptx = library('gstopenaptx',
22    openaptx_sources,
23    c_args : gst_plugins_bad_args + openaptx_defines,
24    include_directories : [configinc],
25    dependencies : [gstaudio_dep, openaptx_dep],
26    install : true,
27    install_dir : plugins_install_dir,
28  )
29  pkgconfig.generate(gstopenaptx, install_dir : plugins_pkgconfig_install_dir)
30  plugins += [gstopenaptx]
31endif
32