mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 12:01:27 +00:00
aedi: add lua target
This commit is contained in:
parent
64e3decce0
commit
88eef4b9d3
2 changed files with 18 additions and 0 deletions
|
@ -72,6 +72,7 @@ def targets():
|
|||
FreeTypeTarget(),
|
||||
FtglTarget(),
|
||||
GlewTarget(),
|
||||
LuaTarget(),
|
||||
LzmaTarget(),
|
||||
MadTarget(),
|
||||
MikmodTarget(),
|
||||
|
|
|
@ -137,6 +137,23 @@ class GlewTarget(CMakeStaticDependencyTarget):
|
|||
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):
|
||||
def __init__(self, name='lzma'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue