aedi: move pbzx target to tier 2

This commit is contained in:
alexey.lysiuk 2022-09-23 14:58:01 +03:00
parent d0ea4f5587
commit b2dfc668bd
3 changed files with 16 additions and 16 deletions

View file

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

View file

@ -147,21 +147,6 @@ class P7ZipTarget(CMakeTarget):
self.copy_to_bin(state, '7za')
class PbzxTarget(SingleExeCTarget):
def __init__(self, name='pbzx'):
super().__init__(name)
self.options = ('pbzx.c', '-lxar', '-llzma')
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/nrosenstein-stuff/pbzx/archive/refs/tags/v1.0.2.tar.gz',
'33db3cf9dc70ae704e1bbfba52c984f4c6dbfd0cc4449fa16408910e22b4fd90',
'pbzx-xar-content')
def detect(self, state: BuildState) -> bool:
return state.has_source_file('pbzx.c')
class PkgConfigTarget(ConfigureMakeDependencyTarget):
def __init__(self, name='pkg-config'):
super().__init__(name)

View file

@ -19,6 +19,21 @@
from .base import *
class PbzxTarget(SingleExeCTarget):
def __init__(self, name='pbzx'):
super().__init__(name)
self.options = ('pbzx.c', '-lxar', '-llzma')
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/nrosenstein-stuff/pbzx/archive/refs/tags/v1.0.2.tar.gz',
'33db3cf9dc70ae704e1bbfba52c984f4c6dbfd0cc4449fa16408910e22b4fd90',
'pbzx-xar-content')
def detect(self, state: BuildState) -> bool:
return state.has_source_file('pbzx.c')
class ZipTarget(SingleExeCTarget):
def __init__(self, name='zip'):
super().__init__(name)