aedi: extract zdoom base target with vulkan support

This commit is contained in:
alexey.lysiuk 2021-04-09 22:06:19 +03:00
parent dac6faec76
commit 66b750cde6
1 changed files with 12 additions and 7 deletions

View File

@ -82,13 +82,10 @@ class ZDoomBaseTarget(CMakeMainTarget):
super().configure(state)
class GZDoomTarget(ZDoomBaseTarget):
def __init__(self, name='gzdoom'):
class ZDoomVulkanBaseTarget(ZDoomBaseTarget):
def __init__(self, name=None):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/coelckers/gzdoom.git')
def post_build(self, state: BuildState):
# Put MoltenVK library into application bundle
molten_lib = 'libMoltenVK.dylib'
@ -111,7 +108,15 @@ class GZDoomTarget(ZDoomBaseTarget):
super().post_build(state)
class QZDoomTarget(GZDoomTarget):
class GZDoomTarget(ZDoomVulkanBaseTarget):
def __init__(self, name='gzdoom'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/coelckers/gzdoom.git')
class QZDoomTarget(ZDoomVulkanBaseTarget):
def __init__(self, name='qzdoom'):
super().__init__(name)
@ -119,7 +124,7 @@ class QZDoomTarget(GZDoomTarget):
state.checkout_git('https://github.com/madame-rachelle/qzdoom.git')
class LZDoomTarget(GZDoomTarget):
class LZDoomTarget(ZDoomVulkanBaseTarget):
def __init__(self, name='lzdoom'):
super().__init__(name)