aedi: move unrar target to tool tier 2

This commit is contained in:
alexey.lysiuk 2022-09-24 09:53:24 +03:00
parent 47e18aa2aa
commit caa8227497
3 changed files with 17 additions and 17 deletions

View file

@ -117,11 +117,11 @@ def targets():
NinjaTarget(),
P7ZipTarget(),
PkgConfigTarget(),
UnrarTarget(),
YasmTarget(),
# Tools without binaries stored in the repo, can be outdated
PbzxTarget(),
UnrarTarget(),
ZipTarget(),
# Special

View file

@ -163,22 +163,6 @@ class PkgConfigTarget(ConfigureMakeDependencyTarget):
self.copy_to_bin(state, new_filename=self.name + '.exe')
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)
def detect(self, state: BuildState) -> bool:
return state.has_source_file('rar.hpp')
class YasmTarget(ConfigureMakeDependencyTarget):
def __init__(self, name='yasm'):
super().__init__(name)

View file

@ -34,6 +34,22 @@ class PbzxTarget(SingleExeCTarget):
return state.has_source_file('pbzx.c')
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)
def detect(self, state: BuildState) -> bool:
return state.has_source_file('rar.hpp')
class ZipTarget(SingleExeCTarget):
def __init__(self, name='zip'):
super().__init__(name)