[vlc-commits] [Git][videolan/vlc][master] 2 commits: meson.build: fix bison_gen undefined variable
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Apr 9 15:35:06 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
2d57ae1d by Alexandre Janniaux at 2026-04-09T13:55:53+00:00
meson.build: fix bison_gen undefined variable
When bison and flex are not found, bison_gen and flex_gen are not
defined and it errors out later in the build process.
- - - - -
93f0d729 by Alexandre Janniaux at 2026-04-09T13:55:53+00:00
codec: meson.build: fix webvtt without flex/bison
If flex or bison is not found, the sources for webvtt are not complete
and the build ends up with a linker failure for missing symbols. We need
to disable the module in that case.
- - - - -
2 changed files:
- meson.build
- modules/codec/meson.build
Changes:
=====================================
meson.build
=====================================
@@ -1092,6 +1092,8 @@ endif
flex = find_program('flex', required: false)
bison = find_program('bison', required: false)
+bison_gen = disabler()
+flex_gen = disabler()
if flex.found() and bison.found()
bison_gen = generator(bison,
output: ['@BASENAME at .c', '@BASENAME at .h'],
=====================================
modules/codec/meson.build
=====================================
@@ -429,6 +429,7 @@ vlc_modules += {
'name' : 'webvtt',
'sources' : webvtt_sources,
'include_directories' : include_directories('webvtt'),
+ 'enabled': get_option('css_engine').require(flex.found() and bison.found()).allowed()
}
## Xiph.org codecs
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b099590c24caf912210ad173b7ab1997aa0bc4ae...93f0d7291ed03fd0798704549ececf12d981e304
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b099590c24caf912210ad173b7ab1997aa0bc4ae...93f0d7291ed03fd0798704549ececf12d981e304
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list