2019-07-29 15:55:51 +00:00
|
|
|
project('win-flex-bison-binary', version : '2.5.18')
|
2018-05-17 08:25:43 +00:00
|
|
|
|
2019-01-24 16:11:59 +00:00
|
|
|
py3 = import('python3').find_python()
|
2018-05-17 08:25:43 +00:00
|
|
|
|
2019-01-24 16:11:59 +00:00
|
|
|
message('Downloading and extracting win-flex-bison binaries...')
|
2018-05-17 08:25:43 +00:00
|
|
|
|
2019-07-29 15:55:51 +00:00
|
|
|
zip_hash = '095cf65cb3f12ee5888022f93109acbe6264e5f18f6ffce0bda77feb31b65bd8'
|
2018-05-17 08:25:43 +00:00
|
|
|
|
2019-01-24 16:11:59 +00:00
|
|
|
ret = run_command(py3, files('download-binary.py'), meson.project_version(), zip_hash)
|
|
|
|
if ret.returncode() != 0
|
|
|
|
message(ret.stdout())
|
|
|
|
error(ret.stderr())
|
2018-05-17 08:25:43 +00:00
|
|
|
endif
|
2019-01-24 16:11:59 +00:00
|
|
|
|
|
|
|
meson.override_find_program('flex', find_program('win_flex'))
|
|
|
|
meson.override_find_program('bison', find_program('win_bison'))
|