mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
aedi: move webp to tier 3
This commit is contained in:
parent
cdbb8dd9a3
commit
81e7680ca5
3 changed files with 28 additions and 28 deletions
|
@ -86,7 +86,6 @@ def targets():
|
|||
SodiumTarget(),
|
||||
VulkanHeadersTarget(),
|
||||
VulkanLoaderTarget(),
|
||||
WebpTarget(),
|
||||
XmpTarget(),
|
||||
|
||||
# Obsolete libraries without binaries
|
||||
|
@ -101,6 +100,7 @@ def targets():
|
|||
Sdl2TtfTarget(),
|
||||
SfmlTarget(),
|
||||
TiffTarget(),
|
||||
WebpTarget(),
|
||||
WxWidgetsTarget(),
|
||||
ZstdTarget(),
|
||||
|
||||
|
|
|
@ -385,33 +385,6 @@ class VulkanLoaderTarget(CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class WebpTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='webp'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.2.tar.gz',
|
||||
'7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6',
|
||||
patches='webp-fix-cmake')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
option_suffices = (
|
||||
'ANIM_UTILS', 'CWEBP', 'DWEBP', 'EXTRAS', 'GIF2WEBP', 'IMG2WEBP', 'LIBWEBPMUX', 'VWEBP', 'WEBPINFO',
|
||||
)
|
||||
|
||||
for suffix in option_suffices:
|
||||
state.options[f'WEBP_BUILD_{suffix}'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
|
||||
shutil.copytree(state.install_path / 'share/WebP/cmake', state.install_path / 'lib/cmake/WebP')
|
||||
self.keep_module_target(state, 'WebP::webp')
|
||||
|
||||
|
||||
class XmpTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='xmp'):
|
||||
super().__init__(name)
|
||||
|
|
|
@ -326,6 +326,33 @@ class TiffTarget(CMakeStaticDependencyTarget):
|
|||
return line
|
||||
|
||||
|
||||
class WebpTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='webp'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.2.tar.gz',
|
||||
'7656532f837af5f4cec3ff6bafe552c044dc39bf453587bd5b77450802f4aee6',
|
||||
patches='webp-fix-cmake')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
option_suffices = (
|
||||
'ANIM_UTILS', 'CWEBP', 'DWEBP', 'EXTRAS', 'GIF2WEBP', 'IMG2WEBP', 'LIBWEBPMUX', 'VWEBP', 'WEBPINFO',
|
||||
)
|
||||
|
||||
for suffix in option_suffices:
|
||||
state.options[f'WEBP_BUILD_{suffix}'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
def post_build(self, state: BuildState):
|
||||
super().post_build(state)
|
||||
|
||||
shutil.copytree(state.install_path / 'share/WebP/cmake', state.install_path / 'lib/cmake/WebP')
|
||||
self.keep_module_target(state, 'WebP::webp')
|
||||
|
||||
|
||||
class WxWidgetsTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='wxwidgets'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue