aedi: move zstd to tier 3

This commit is contained in:
alexey.lysiuk 2022-07-10 10:51:33 +03:00
parent 4beefaec2a
commit 22d6948f3d
3 changed files with 19 additions and 19 deletions

View file

@ -88,7 +88,6 @@ def targets():
VulkanLoaderTarget(), VulkanLoaderTarget(),
WebpTarget(), WebpTarget(),
XmpTarget(), XmpTarget(),
ZstdTarget(),
# Obsolete libraries without binaries # Obsolete libraries without binaries
BrotliTarget(), BrotliTarget(),
@ -103,6 +102,7 @@ def targets():
SfmlTarget(), SfmlTarget(),
TiffTarget(), TiffTarget(),
WxWidgetsTarget(), WxWidgetsTarget(),
ZstdTarget(),
# Tools # Tools
BuildCMakeTarget(), BuildCMakeTarget(),

View file

@ -427,21 +427,3 @@ class XmpTarget(ConfigureMakeStaticDependencyTarget):
def configure(self, state: BuildState): def configure(self, state: BuildState):
state.options['--enable-static'] = None state.options['--enable-static'] = None
super().configure(state) super().configure(state)
class ZstdTarget(CMakeStaticDependencyTarget):
def __init__(self, name='zstd'):
super().__init__(name)
self.src_root = 'build/cmake'
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz',
'5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94')
def configure(self, state: BuildState):
opts = state.options
opts['ZSTD_BUILD_PROGRAMS'] = 'NO'
opts['ZSTD_BUILD_SHARED'] = 'NO'
super().configure(state)

View file

@ -387,3 +387,21 @@ class WxWidgetsTarget(CMakeStaticDependencyTarget):
wx_config_path = state.install_path / 'bin/wx-config' wx_config_path = state.install_path / 'bin/wx-config'
self.update_text_file(wx_config_path, patch_wx_config) self.update_text_file(wx_config_path, patch_wx_config)
class ZstdTarget(CMakeStaticDependencyTarget):
def __init__(self, name='zstd'):
super().__init__(name)
self.src_root = 'build/cmake'
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz',
'5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94')
def configure(self, state: BuildState):
opts = state.options
opts['ZSTD_BUILD_PROGRAMS'] = 'NO'
opts['ZSTD_BUILD_SHARED'] = 'NO'
super().configure(state)