gstreamer/subprojects/macos-bison-binary/bison.py.in
Nirbheek Chauhan afd11f3383 New subproject macos-bison-binary to provide bison on macOS
The version of bison that ships with macOS is too old, so we need to
provide our own version of it.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/174

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/257>
2021-08-28 23:44:52 +05:30

15 lines
395 B
Python
Executable file

#!/usr/bin/env python3
import os
import sys
import pathlib
import subprocess
srcdir = pathlib.Path("@SRCDIR@")
extractdir = pathlib.Path("@EXTRACTDIR@")
bison_path = srcdir / extractdir / 'bin/bison'
env = os.environ.copy()
env['BISON_PKGDATADIR'] = str(srcdir / extractdir / 'share/bison')
ret = subprocess.run([str(bison_path)] + sys.argv[1:], check=False, env=env)
sys.exit(ret.returncode)