mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-20 23:20:47 +00:00
bison
This commit is contained in:
parent
3c45d73bd6
commit
50f69431f5
2 changed files with 18 additions and 0 deletions
|
@ -122,6 +122,7 @@ def targets():
|
|||
YasmTarget(),
|
||||
|
||||
# Tools without binaries stored in the repo, can be outdated
|
||||
BisonTarget(),
|
||||
GlslangTarget(),
|
||||
P7ZipTarget(),
|
||||
PbzxTarget(),
|
||||
|
|
|
@ -23,6 +23,23 @@ from ..state import BuildState
|
|||
from . import base
|
||||
|
||||
|
||||
class BisonTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='bison'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.xz',
|
||||
'9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('doc/bison.1')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
state.options['--enable-relocatable'] = None
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class GlslangTarget(base.CMakeStaticDependencyTarget):
|
||||
# Build with --os-version-x64=10.15 command line option
|
||||
|
||||
|
|
Loading…
Reference in a new issue