mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: add unrar target
This commit is contained in:
parent
4bc8050cf6
commit
04735a5419
2 changed files with 14 additions and 0 deletions
|
@ -103,6 +103,7 @@ def targets():
|
|||
NinjaTarget(),
|
||||
P7ZipTarget(),
|
||||
PkgConfigTarget(),
|
||||
UnrarTarget(),
|
||||
YasmTarget(),
|
||||
ZipTarget(),
|
||||
|
||||
|
|
|
@ -150,6 +150,19 @@ class YasmTarget(ConfigureMakeDependencyTarget):
|
|||
return os.path.exists(state.source + 'libyasm.h')
|
||||
|
||||
|
||||
class UnrarTarget(MakeTarget):
|
||||
def __init__(self, name='unrar'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz',
|
||||
'a7029942006cbcced3f3b7322ec197683f8e7be408972ca08099b196c038f518')
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
self.copy_to_bin(state)
|
||||
|
||||
|
||||
class ZipTarget(MakeTarget):
|
||||
def __init__(self, name='zip'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue