mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
aedi: add rizin target
This commit is contained in:
parent
116551e40e
commit
d7937719ae
2 changed files with 23 additions and 0 deletions
|
@ -127,6 +127,7 @@ def targets():
|
|||
PbzxTarget(),
|
||||
QPakManTarget(),
|
||||
Radare2Target(),
|
||||
RizinTarget(),
|
||||
SeverZipTarget(),
|
||||
UnrarTarget(),
|
||||
ZipTarget(),
|
||||
|
|
|
@ -119,6 +119,28 @@ class Radare2Target(base.MesonTarget):
|
|||
os.rename(bin_path / 'r2blob', bin_path / 'radare2')
|
||||
|
||||
|
||||
class RizinTarget(base.MesonTarget):
|
||||
def __init__(self, name='rizin'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/rizinorg/rizin/releases/download/v0.5.2/rizin-src-v0.5.2.tar.xz',
|
||||
'71ab80fc3c8ac9c80a10000d838128af28a05d31a0ee183900c2c5c6e350eca3')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('binrz/man/rizin.1')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
option = state.options
|
||||
option['blob'] = 'true'
|
||||
option['enable_tests'] = 'false'
|
||||
option['enable_rz_test'] = 'false'
|
||||
option['portable'] = 'true'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class SeverZipTarget(base.MakeTarget):
|
||||
# Build with --os-version-x64=10.13 command line option
|
||||
|
||||
|
|
Loading…
Reference in a new issue