mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
1a53dfbd64
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>
20 lines
570 B
Meson
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
|