The ldacBT library includes pkg-config files for the standard and ABR
libraries, so let's just use that instead of doing a header/library
search.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1990>
#include <gst/gst.h>
#include <gst/audio/audio.h>
-#include <ldac/ldacBT.h>
+#include <ldacBT.h>
G_BEGIN_DECLS
'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'))
+ldac_dep = dependency('ldacBT-enc', required : get_option('ldac'))
-if ldac_dep.found() and ldac_hdr
+if ldac_dep.found()
gstldac = library('gstldac',
ldac_sources,
c_args : gst_plugins_bad_args,