mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
aedi: rename lzma target to xz, and move it to tools tier 2
This commit is contained in:
parent
a64068ac0d
commit
9a6360d968
3 changed files with 22 additions and 22 deletions
|
@ -107,7 +107,6 @@ def targets():
|
||||||
HighwayTarget(),
|
HighwayTarget(),
|
||||||
JpegTurboTarget(),
|
JpegTurboTarget(),
|
||||||
LuaTarget(),
|
LuaTarget(),
|
||||||
LzmaTarget(),
|
|
||||||
Sdl2TtfTarget(),
|
Sdl2TtfTarget(),
|
||||||
SfmlTarget(),
|
SfmlTarget(),
|
||||||
TiffTarget(),
|
TiffTarget(),
|
||||||
|
@ -133,6 +132,7 @@ def targets():
|
||||||
RizinTarget(),
|
RizinTarget(),
|
||||||
SeverZipTarget(),
|
SeverZipTarget(),
|
||||||
UnrarTarget(),
|
UnrarTarget(),
|
||||||
|
XzTarget(),
|
||||||
ZipTarget(),
|
ZipTarget(),
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
|
|
|
@ -287,27 +287,6 @@ class LuaTarget(base.MakeTarget):
|
||||||
self.install(state, state.options)
|
self.install(state, state.options)
|
||||||
|
|
||||||
|
|
||||||
class LzmaTarget(base.CMakeStaticDependencyTarget):
|
|
||||||
def __init__(self, name='lzma'):
|
|
||||||
super().__init__(name)
|
|
||||||
|
|
||||||
def prepare_source(self, state: BuildState):
|
|
||||||
state.download_source(
|
|
||||||
'https://tukaani.org/xz/xz-5.2.5.tar.gz',
|
|
||||||
'f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10',
|
|
||||||
patches='lzma-add-cmake')
|
|
||||||
|
|
||||||
def detect(self, state: BuildState) -> bool:
|
|
||||||
return state.has_source_file('src/liblzma/liblzma.pc.in')
|
|
||||||
|
|
||||||
def post_build(self, state: BuildState):
|
|
||||||
super().post_build(state)
|
|
||||||
|
|
||||||
self.write_pc_file(state, 'liblzma.pc', name='liblzma',
|
|
||||||
description='General purpose data compression library',
|
|
||||||
version='5.2.5', libs='-llzma')
|
|
||||||
|
|
||||||
|
|
||||||
class Sdl2TtfTarget(base.CMakeStaticDependencyTarget):
|
class Sdl2TtfTarget(base.CMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='sdl2_ttf'):
|
def __init__(self, name='sdl2_ttf'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
|
@ -222,6 +222,27 @@ class UnrarTarget(base.MakeTarget):
|
||||||
return state.has_source_file('rar.hpp')
|
return state.has_source_file('rar.hpp')
|
||||||
|
|
||||||
|
|
||||||
|
class XzTarget(base.CMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='xz'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, state: BuildState):
|
||||||
|
state.download_source(
|
||||||
|
'https://tukaani.org/xz/xz-5.2.5.tar.gz',
|
||||||
|
'f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10',
|
||||||
|
patches='lzma-add-cmake')
|
||||||
|
|
||||||
|
def detect(self, state: BuildState) -> bool:
|
||||||
|
return state.has_source_file('src/liblzma/liblzma.pc.in')
|
||||||
|
|
||||||
|
def post_build(self, state: BuildState):
|
||||||
|
super().post_build(state)
|
||||||
|
|
||||||
|
self.write_pc_file(state, 'liblzma.pc', name='liblzma',
|
||||||
|
description='General purpose data compression library',
|
||||||
|
version='5.2.5', libs='-llzma')
|
||||||
|
|
||||||
|
|
||||||
class ZipTarget(base.SingleExeCTarget):
|
class ZipTarget(base.SingleExeCTarget):
|
||||||
def __init__(self, name='zip'):
|
def __init__(self, name='zip'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
Loading…
Reference in a new issue