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>
This commit is contained in:
Matthew Waters 2021-01-22 19:26:18 +11:00 committed by GStreamer Merge Bot
parent 8a8688c639
commit 1a53dfbd64

View file

@ -4,8 +4,9 @@ ldac_sources = [
]
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()
if ldac_dep.found() and ldac_hdr
gstldac = library('gstldac',
ldac_sources,
c_args : gst_plugins_bad_args,