mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: fix detection of lzdoom targets
This commit is contained in:
parent
539d67838f
commit
21f9274a90
1 changed files with 6 additions and 0 deletions
|
@ -131,6 +131,9 @@ class LZDoomTarget(ZDoomVulkanBaseTarget):
|
|||
def prepare_source(self, state: BuildState):
|
||||
state.checkout_git('https://github.com/drfrag666/gzdoom.git')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return super().detect(state) and not os.path.exists(state.source + 'libraries/zmusic')
|
||||
|
||||
|
||||
class LZDoom3Target(ZDoomBaseTarget):
|
||||
def __init__(self, name='lzdoom3'):
|
||||
|
@ -140,6 +143,9 @@ class LZDoom3Target(ZDoomBaseTarget):
|
|||
def prepare_source(self, state: BuildState):
|
||||
state.checkout_git('https://github.com/drfrag666/gzdoom.git', branch='g3.3mgw')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return os.path.exists(state.source + 'ico_lzdoom.png') and os.path.exists(state.source + 'libraries/zmusic')
|
||||
|
||||
def initialize(self, state: BuildState):
|
||||
super().initialize(state)
|
||||
|
||||
|
|
Loading…
Reference in a new issue