2020-12-11 08:45:06 +00:00
|
|
|
openaptx_sources = [
|
|
|
|
'openaptx-plugin.c',
|
|
|
|
'gstopenaptxdec.c',
|
|
|
|
'gstopenaptxenc.c',
|
|
|
|
]
|
|
|
|
|
2022-02-08 14:22:39 +00:00
|
|
|
if not get_option('openaptx').allowed()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
openaptx_defines = []
|
|
|
|
|
|
|
|
openaptx_dep = dependency('libfreeaptx', version : '>= 0.1.1', required : false)
|
|
|
|
if openaptx_dep.found()
|
|
|
|
openaptx_defines += ['-DUSE_FREEAPTX']
|
|
|
|
else
|
|
|
|
openaptx_dep = dependency('libopenaptx', version : '== 0.2.0', required : get_option('openaptx'))
|
|
|
|
endif
|
2020-12-11 08:45:06 +00:00
|
|
|
|
|
|
|
if openaptx_dep.found()
|
|
|
|
gstopenaptx = library('gstopenaptx',
|
|
|
|
openaptx_sources,
|
2022-02-08 14:22:39 +00:00
|
|
|
c_args : gst_plugins_bad_args + openaptx_defines,
|
2020-12-11 08:45:06 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, openaptx_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstopenaptx, install_dir : plugins_pkgconfig_install_dir)
|
|
|
|
plugins += [gstopenaptx]
|
|
|
|
endif
|