meson: Add fallback for openh264 dependency

This commit is contained in:
Thibault Saunier 2018-06-28 15:21:12 -04:00
parent bc128d6100
commit a387f4bc33

View File

@ -4,7 +4,8 @@ openh264_sources = [
'gstopenh264plugin.c', 'gstopenh264plugin.c',
] ]
openh264_dep = dependency('openh264', version : '>= 1.3.0', required : false) openh264_dep = dependency('openh264', version : '>= 1.3.0', required : false,
fallback: ['openh264', 'openh264_dep'])
# FIXME: check if C++ compiler is available via new add_languages() semantics in meson git (~v30) # FIXME: check if C++ compiler is available via new add_languages() semantics in meson git (~v30)
if openh264_dep.found() if openh264_dep.found()