gst-inspect: print doc urls for Rust plugins
[platform/upstream/gstreamer.git] / subprojects / macos-bison-binary / meson.build
1 project('win-flex-bison-binary', version : '3.7.6')
2
3 py3 = import('python3').find_python()
4
5 message('Downloading and extracting bison for macOS x64...')
6
7 arch = host_machine.cpu_family()
8 tar_hash = '932f91d7c7fa0121abc3e5f8e54a7234b03d3de468c254ab8063ff8e6eb92a09'
9 if arch != 'x86_64'
10   warning('bison binary is untested on non-x86_64, please report whether this worked or not')
11   arch = 'x86_64'
12 endif
13
14 ret = run_command(py3, files('download-binary.py'), meson.project_version(), arch, tar_hash,
15     check: true)
16
17 conf = configuration_data()
18 conf.set('SRCDIR', meson.project_source_root())
19 conf.set('EXTRACTDIR', ret.stdout())
20 bison_py = configure_file(
21     input: 'bison.py.in',
22     output: 'bison.py',
23     configuration: conf)
24
25 meson.override_find_program('bison', find_program(bison_py))