mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: move pbzx target to tier 2
This commit is contained in:
parent
d0ea4f5587
commit
b2dfc668bd
3 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue