This commit is contained in:
alexey.lysiuk 2023-07-29 13:07:04 +03:00
parent 3c45d73bd6
commit 50f69431f5
2 changed files with 18 additions and 0 deletions

View file

@ -122,6 +122,7 @@ def targets():
YasmTarget(), YasmTarget(),
# Tools without binaries stored in the repo, can be outdated # Tools without binaries stored in the repo, can be outdated
BisonTarget(),
GlslangTarget(), GlslangTarget(),
P7ZipTarget(), P7ZipTarget(),
PbzxTarget(), PbzxTarget(),

View file

@ -23,6 +23,23 @@ from ..state import BuildState
from . import base 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): class GlslangTarget(base.CMakeStaticDependencyTarget):
# Build with --os-version-x64=10.15 command line option # Build with --os-version-x64=10.15 command line option