aedi: add cmake main target that produces single executable

This commit is contained in:
alexey.lysiuk 2022-07-26 10:19:02 +03:00
parent bb85949507
commit b0a3c2722e

View file

@ -74,6 +74,12 @@ class CMakeMainTarget(CMakeTarget):
opts['OPENAL_LIBRARY'] = state.lib_path / 'libopenal.a' opts['OPENAL_LIBRARY'] = state.lib_path / 'libopenal.a'
class CMakeSingleExeMainTarget(CMakeMainTarget):
def __init__(self, name=None):
super().__init__(name)
self.outputs = (name,)
class ZDoomBaseTarget(CMakeMainTarget): class ZDoomBaseTarget(CMakeMainTarget):
def __init__(self, name=None): def __init__(self, name=None):
super().__init__(name) super().__init__(name)
@ -160,19 +166,17 @@ class RazeTarget(ZDoomVulkanBaseTarget):
state.checkout_git('https://github.com/ZDoom/Raze.git') state.checkout_git('https://github.com/ZDoom/Raze.git')
class AccTarget(CMakeMainTarget): class AccTarget(CMakeSingleExeMainTarget):
def __init__(self, name='acc'): def __init__(self, name='acc'):
super().__init__(name) super().__init__(name)
self.outputs = ('acc',)
def prepare_source(self, state: BuildState): def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/ZDoom/acc.git') state.checkout_git('https://github.com/ZDoom/acc.git')
class WadExtTarget(CMakeMainTarget): class WadExtTarget(CMakeSingleExeMainTarget):
def __init__(self, name='wadext'): def __init__(self, name='wadext'):
super().__init__(name) super().__init__(name)
self.outputs = (name,)
def prepare_source(self, state: BuildState): def prepare_source(self, state: BuildState):
state.checkout_git('https://github.com/ZDoom/wadext.git') state.checkout_git('https://github.com/ZDoom/wadext.git')