gstreamer/ext/ldac/meson.build
Matthew Waters 1a53dfbd64 ldac: also look for the ldac/ldacBT.h header.
Otherwise there will be a scenario where the library can be found but
not the header and a compilation build error will result

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1975>
2021-01-22 09:32:51 +00:00

20 lines
570 B
Meson

ldac_sources = [
'ldac-plugin.c',
'gstldacenc.c',
]
ldac_dep = cc.find_library('ldacBT_enc', required : get_option('ldac'))
ldac_hdr = cc.has_header('ldac/ldacBT.h', required: get_option('ldac'))
if ldac_dep.found() and ldac_hdr
gstldac = library('gstldac',
ldac_sources,
c_args : gst_plugins_bad_args,
include_directories : [configinc],
dependencies : [gstaudio_dep, ldac_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstldac, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstldac]
endif