From b0a3c2722e5c9007120d3eef30c92ae4f5fe196f Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 26 Jul 2022 10:19:02 +0300 Subject: [PATCH] aedi: add cmake main target that produces single executable --- aedi/target/main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/aedi/target/main.py b/aedi/target/main.py index e18af00e..f27ca28a 100644 --- a/aedi/target/main.py +++ b/aedi/target/main.py @@ -74,6 +74,12 @@ class CMakeMainTarget(CMakeTarget): 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): def __init__(self, name=None): super().__init__(name) @@ -160,19 +166,17 @@ class RazeTarget(ZDoomVulkanBaseTarget): state.checkout_git('https://github.com/ZDoom/Raze.git') -class AccTarget(CMakeMainTarget): +class AccTarget(CMakeSingleExeMainTarget): def __init__(self, name='acc'): super().__init__(name) - self.outputs = ('acc',) def prepare_source(self, state: BuildState): state.checkout_git('https://github.com/ZDoom/acc.git') -class WadExtTarget(CMakeMainTarget): +class WadExtTarget(CMakeSingleExeMainTarget): def __init__(self, name='wadext'): super().__init__(name) - self.outputs = (name,) def prepare_source(self, state: BuildState): state.checkout_git('https://github.com/ZDoom/wadext.git')