ldac: Use pkg-config instead of raw lib/header search

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>
This commit is contained in:
Arun Raghavan 2021-01-27 17:09:07 -05:00
parent 66eed8a61d
commit a417a761fd
2 changed files with 3 additions and 4 deletions

View file

@ -19,7 +19,7 @@
#include <gst/gst.h>
#include <gst/audio/audio.h>
#include <ldac/ldacBT.h>
#include <ldacBT.h>
G_BEGIN_DECLS

View file

@ -3,10 +3,9 @@ ldac_sources = [
'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,