gstreamer/subprojects/macos-bison-binary/meson.build
Nirbheek Chauhan e07ea8abe3 macos-bison: Update to 3.8.2 and add an ARM64 build
Also includes a shell script to build bison and match pycodestyle.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5299>
2023-09-07 21:36:15 +00:00

16 lines
600 B
Meson

project('macos-bison-binary', version : '3.8.2')
arch = host_machine.cpu_family()
message('Downloading and extracting bison for macOS @0@...'.format(arch))
checksum = {
'x86_64': '325e78de481fa044f0f2177d4da332a1b580bda23fdaf37e7918c5fd55240254',
'aarch64': '932f9ec3da7a9f6c9f596094f889038340a45e84dc03082cb10ffee84b5d7af0',
}
py3 = import('python3').find_python()
ret = run_command(py3, files('download-binary.py'), meson.project_version(), arch, checksum[arch],
check: true)
meson.override_find_program('bison', find_program(meson.project_source_root() / ret.stdout() / 'bin/bison'))