meson: declare liblc3 as dependency

helps to compile liblc3 from source as
a meson subproject if it is not installed
as a system package
This commit is contained in:
Taruntej Kanakamalla
2023-03-02 11:35:50 +05:30
parent 1669b25e09
commit c212c3085e

View File

@@ -44,3 +44,12 @@ pkg_mod.generate(libraries : lc3lib,
name : 'liblc3',
filebase : 'lc3',
description : 'LC3 codec library')
#Declare dependency
liblc3_dep = declare_dependency(
link_with : lc3lib,
include_directories : inc)
if meson.version().version_compare('>= 0.54.0')
meson.override_dependency('liblc3', liblc3_dep)
endif