diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-11-24 02:39:43 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-12-05 12:26:44 +0530 |
commit | 3c5edc76e590e9a2589d227b4185c8d811e16ad8 (patch) | |
tree | 3dd5138d63de56b99dd480651020db40402eea79 | |
parent | 16de48ae03651cd614c065175354e4f48f2947b1 (diff) |
meson: Use new find_program fallback syntax
We use this syntax in libs/gst/helpers/meson.build already.
-rw-r--r-- | gst/parse/meson.build | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gst/parse/meson.build b/gst/parse/meson.build index 9ecf0ab2c..b627d1c2e 100644 --- a/gst/parse/meson.build +++ b/gst/parse/meson.build @@ -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 |