mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +00:00
meson: Use new find_program fallback syntax
We use this syntax in libs/gst/helpers/meson.build already.
This commit is contained in:
parent
16de48ae03
commit
3c5edc76e5
1 changed files with 2 additions and 14 deletions
|
@ -4,13 +4,7 @@ cc = meson.get_compiler('c')
|
|||
flex_cdata = configuration_data()
|
||||
|
||||
flex_min_version='2.5.31'
|
||||
flex = find_program('flex', required : false)
|
||||
if not flex.found()
|
||||
flex = find_program('win_flex', required : false)
|
||||
if not flex.found()
|
||||
error('flex not found')
|
||||
endif
|
||||
endif
|
||||
flex = find_program('flex', 'win_flex')
|
||||
|
||||
flexversion_res = run_command([flex, '--version'])
|
||||
if flexversion_res.returncode() != 0
|
||||
|
@ -39,13 +33,7 @@ gen_lex = configure_file(input : 'gen_lex.py.in',
|
|||
bison_cdata = configuration_data()
|
||||
|
||||
bison_min_version='2.4'
|
||||
bison = find_program('bison', required : false)
|
||||
if not bison.found()
|
||||
bison = find_program('win_bison', required : false)
|
||||
if not bison.found()
|
||||
error('GNU bison not found')
|
||||
endif
|
||||
endif
|
||||
bison = find_program('bison', 'win_bison')
|
||||
|
||||
bversion_res = run_command([bison, '--version'])
|
||||
if bversion_res.returncode() != 0
|
||||
|
|
Loading…
Reference in a new issue