mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: move p7zip target to tool tier 2
This commit is contained in:
parent
49bcb7fde6
commit
71f4c992fe
3 changed files with 19 additions and 19 deletions
|
@ -115,11 +115,11 @@ def targets():
|
|||
MesonTarget(),
|
||||
NasmTarget(),
|
||||
NinjaTarget(),
|
||||
P7ZipTarget(),
|
||||
PkgConfigTarget(),
|
||||
YasmTarget(),
|
||||
|
||||
# Tools without binaries stored in the repo, can be outdated
|
||||
P7ZipTarget(),
|
||||
PbzxTarget(),
|
||||
UnrarTarget(),
|
||||
ZipTarget(),
|
||||
|
|
|
@ -129,24 +129,6 @@ class NinjaTarget(CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class P7ZipTarget(CMakeTarget):
|
||||
def __init__(self, name='p7zip'):
|
||||
super().__init__(name)
|
||||
self.src_root = 'CPP/7zip/CMAKE/7za'
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/jinfeihan57/p7zip/archive/refs/tags/v17.04.tar.gz',
|
||||
'ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('CPP/7zip/CMAKE/CMakeLists.txt') \
|
||||
and state.has_source_file('C/fast-lzma2/fast-lzma2.h')
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
self.copy_to_bin(state, '7za')
|
||||
|
||||
|
||||
class PkgConfigTarget(ConfigureMakeDependencyTarget):
|
||||
def __init__(self, name='pkg-config'):
|
||||
super().__init__(name)
|
||||
|
|
|
@ -19,6 +19,24 @@
|
|||
from .base import *
|
||||
|
||||
|
||||
class P7ZipTarget(CMakeTarget):
|
||||
def __init__(self, name='p7zip'):
|
||||
super().__init__(name)
|
||||
self.src_root = 'CPP/7zip/CMAKE/7za'
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/jinfeihan57/p7zip/archive/refs/tags/v17.04.tar.gz',
|
||||
'ea029a2e21d2d6ad0a156f6679bd66836204aa78148a4c5e498fe682e77127ef')
|
||||
|
||||
def detect(self, state: BuildState) -> bool:
|
||||
return state.has_source_file('CPP/7zip/CMAKE/CMakeLists.txt') \
|
||||
and state.has_source_file('C/fast-lzma2/fast-lzma2.h')
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
self.copy_to_bin(state, '7za')
|
||||
|
||||
|
||||
class PbzxTarget(SingleExeCTarget):
|
||||
def __init__(self, name='pbzx'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue