mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
build script: add eduke32 target
This commit is contained in:
parent
3209ba2639
commit
72b22160ce
1 changed files with 22 additions and 0 deletions
22
build.py
22
build.py
|
@ -545,6 +545,27 @@ class DevilutionXTarget(CMakeTarget):
|
|||
super().configure(builder)
|
||||
|
||||
|
||||
class EDuke32Target(MakeTarget):
|
||||
def __init__(self, name='eduke32'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, builder: 'Builder'):
|
||||
builder.checkout_git('https://voidpoint.io/terminx/eduke32.git')
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
def has_bundle(name: str) -> bool:
|
||||
probe_path = f'{builder.source_path}/platform/Apple/bundles/{name}.app'
|
||||
return os.path.exists(probe_path)
|
||||
|
||||
return has_bundle('EDuke32') and not has_bundle('NBlood')
|
||||
|
||||
def configure(self, builder: 'Builder'):
|
||||
super().configure(builder)
|
||||
|
||||
# Fix missing definition when building with SDK older than 10.12
|
||||
self._update_env('CXXFLAGS', '-DCLOCK_MONOTONIC=0')
|
||||
|
||||
|
||||
class NBloodTarget(MakeTarget):
|
||||
def __init__(self, name='nblood'):
|
||||
super().__init__(name)
|
||||
|
@ -1668,6 +1689,7 @@ class Builder(object):
|
|||
DoomRetroTarget(),
|
||||
Doom64EXTarget(),
|
||||
DevilutionXTarget(),
|
||||
EDuke32Target(),
|
||||
NBloodTarget(),
|
||||
QuakespasmTarget(),
|
||||
|
||||
|
|
Loading…
Reference in a new issue