2021-08-23 13:23:54 +00:00
|
|
|
project('win-flex-bison-binary', version : '3.7.6')
|
|
|
|
|
|
|
|
py3 = import('python3').find_python()
|
|
|
|
|
|
|
|
message('Downloading and extracting bison for macOS x64...')
|
|
|
|
|
2022-12-16 22:15:23 +00:00
|
|
|
arch = 'x86_64' # run under emulation on arm64
|
2021-08-23 13:23:54 +00:00
|
|
|
tar_hash = '932f91d7c7fa0121abc3e5f8e54a7234b03d3de468c254ab8063ff8e6eb92a09'
|
|
|
|
|
2022-07-15 00:12:10 +00:00
|
|
|
ret = run_command(py3, files('download-binary.py'), meson.project_version(), arch, tar_hash,
|
|
|
|
check: true)
|
2021-08-23 13:23:54 +00:00
|
|
|
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('SRCDIR', meson.project_source_root())
|
|
|
|
conf.set('EXTRACTDIR', ret.stdout())
|
|
|
|
bison_py = configure_file(
|
|
|
|
input: 'bison.py.in',
|
|
|
|
output: 'bison.py',
|
|
|
|
configuration: conf)
|
|
|
|
|
|
|
|
meson.override_find_program('bison', find_program(bison_py))
|