2023-08-30 10:56:07 +00:00
|
|
|
project('macos-bison-binary', version : '3.8.2')
|
2021-08-23 13:23:54 +00:00
|
|
|
|
2023-08-30 10:56:07 +00:00
|
|
|
arch = host_machine.cpu_family()
|
2021-08-23 13:23:54 +00:00
|
|
|
|
2023-08-30 10:56:07 +00:00
|
|
|
message('Downloading and extracting bison for macOS @0@...'.format(arch))
|
2021-08-23 13:23:54 +00:00
|
|
|
|
2023-08-30 10:56:07 +00:00
|
|
|
checksum = {
|
|
|
|
'x86_64': '325e78de481fa044f0f2177d4da332a1b580bda23fdaf37e7918c5fd55240254',
|
|
|
|
'aarch64': '932f9ec3da7a9f6c9f596094f889038340a45e84dc03082cb10ffee84b5d7af0',
|
|
|
|
}
|
2021-08-23 13:23:54 +00:00
|
|
|
|
2023-08-30 10:56:07 +00:00
|
|
|
py3 = import('python3').find_python()
|
|
|
|
ret = run_command(py3, files('download-binary.py'), meson.project_version(), arch, checksum[arch],
|
2022-07-15 00:12:10 +00:00
|
|
|
check: true)
|
2021-08-23 13:23:54 +00:00
|
|
|
|
2023-08-30 10:56:07 +00:00
|
|
|
meson.override_find_program('bison', find_program(meson.project_source_root() / ret.stdout() / 'bin/bison'))
|