mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
meson: Fix detection of cdparanoia library
Without this the pkg-config file is required when the plugin is enabled.
This commit is contained in:
parent
2f497ed217
commit
28caf92587
1 changed files with 11 additions and 4 deletions
|
@ -1,15 +1,18 @@
|
||||||
cdparanoia_deps = []
|
cdparanoia_deps = []
|
||||||
cdparanoia_found = false
|
cdparanoia_found = false
|
||||||
|
cdparanoia_option = get_option('cdparanoia')
|
||||||
|
if cdparanoia_option.disabled()
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
# cdparanoia upstream has a pkg-config file only in post-10.2 SVN so far, no release yet
|
# cdparanoia upstream has a pkg-config file only in post-10.2 SVN so far, no release yet
|
||||||
cdparanoia_dep = dependency('cdparanoia-3', version : '>=10.2',
|
cdparanoia_dep = dependency('cdparanoia-3', version : '>=10.2', required : false)
|
||||||
required : get_option('cdparanoia'))
|
|
||||||
if cdparanoia_dep.found()
|
if cdparanoia_dep.found()
|
||||||
cdparanoia_deps = [cdparanoia_dep]
|
cdparanoia_deps = [cdparanoia_dep]
|
||||||
cdparanoia_found = true
|
cdparanoia_found = true
|
||||||
else
|
else
|
||||||
cdparanoia_dep = cc.find_library('cdda_paranoia', required : get_option('cdparanoia'))
|
cdparanoia_dep = cc.find_library('cdda_paranoia', required : cdparanoia_option)
|
||||||
cdinterface_dep = cc.find_library('cdda_interface', required : get_option('cdparanoia'))
|
cdinterface_dep = cc.find_library('cdda_interface', required : cdparanoia_option)
|
||||||
if cdparanoia_dep.found() and cdinterface_dep.found()
|
if cdparanoia_dep.found() and cdinterface_dep.found()
|
||||||
cdparanoia_deps = [cdparanoia_dep, cdinterface_dep]
|
cdparanoia_deps = [cdparanoia_dep, cdinterface_dep]
|
||||||
cdparanoia_found = true
|
cdparanoia_found = true
|
||||||
|
@ -21,6 +24,10 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if not cdparanoia_found and cdparanoia_option.enabled()
|
||||||
|
error('cdparanoia plugin enabled but library not found')
|
||||||
|
endif
|
||||||
|
|
||||||
if cdparanoia_found
|
if cdparanoia_found
|
||||||
gstcdparanoia = library('gstcdparanoia',
|
gstcdparanoia = library('gstcdparanoia',
|
||||||
['gstcdparanoiasrc.c'],
|
['gstcdparanoiasrc.c'],
|
||||||
|
|
Loading…
Reference in a new issue