mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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:
parent
66eed8a61d
commit
a417a761fd
2 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/audio/audio.h>
|
#include <gst/audio/audio.h>
|
||||||
|
|
||||||
#include <ldac/ldacBT.h>
|
#include <ldacBT.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,9 @@ ldac_sources = [
|
||||||
'gstldacenc.c',
|
'gstldacenc.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
ldac_dep = cc.find_library('ldacBT_enc', required : get_option('ldac'))
|
ldac_dep = dependency('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
|
if ldac_dep.found()
|
||||||
gstldac = library('gstldac',
|
gstldac = library('gstldac',
|
||||||
ldac_sources,
|
ldac_sources,
|
||||||
c_args : gst_plugins_bad_args,
|
c_args : gst_plugins_bad_args,
|
||||||
|
|
Loading…
Reference in a new issue