meson: Add a subproject fallback for x264

This commit is contained in:
Nirbheek Chauhan 2019-03-27 21:59:45 +05:30
parent 48a83e2b4f
commit 647ef1b2af

View file

@ -2,7 +2,8 @@ x264_sources = [
'gstx264enc.c',
]
x264_dep = dependency('x264', required : get_option('x264'))
x264_dep = dependency('x264', required : get_option('x264'),
fallback: ['x264', 'libx264_dep'])
if x264_dep.found()
x264_libraries = get_option('x264_libraries')