aedi: add lua target

This commit is contained in:
alexey.lysiuk 2021-06-23 10:12:23 +03:00
parent 64e3decce0
commit 88eef4b9d3
2 changed files with 18 additions and 0 deletions

View file

@ -72,6 +72,7 @@ def targets():
FreeTypeTarget(), FreeTypeTarget(),
FtglTarget(), FtglTarget(),
GlewTarget(), GlewTarget(),
LuaTarget(),
LzmaTarget(), LzmaTarget(),
MadTarget(), MadTarget(),
MikmodTarget(), MikmodTarget(),

View file

@ -137,6 +137,23 @@ class GlewTarget(CMakeStaticDependencyTarget):
return line return line
class LuaTarget(MakeTarget):
def __init__(self, name='lua'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://www.lua.org/ftp/lua-5.4.3.tar.gz',
'f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb')
def detect(self, state: BuildState) -> bool:
return os.path.exists(state.source + 'src/lua.h')
def post_build(self, state: BuildState):
self.options['INSTALL_TOP'] = state.install_path
self.install(state, self.options)
class LzmaTarget(CMakeStaticDependencyTarget): class LzmaTarget(CMakeStaticDependencyTarget):
def __init__(self, name='lzma'): def __init__(self, name='lzma'):
super().__init__(name) super().__init__(name)