mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-20 18:42:23 +00:00
aedi: remove code duplication in disabled webp options
This commit is contained in:
parent
1e5f1e5179
commit
f0646bdd13
1 changed files with 6 additions and 10 deletions
|
@ -417,16 +417,12 @@ class WebpTarget(CMakeStaticDependencyTarget):
|
|||
'2fc8bbde9f97f2ab403c0224fb9ca62b2e6852cbc519e91ceaa7c153ffd88a0c')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['WEBP_BUILD_ANIM_UTILS'] = 'NO'
|
||||
opts['WEBP_BUILD_CWEBP'] = 'NO'
|
||||
opts['WEBP_BUILD_DWEBP'] = 'NO'
|
||||
opts['WEBP_BUILD_GIF2WEBP'] = 'NO'
|
||||
opts['WEBP_BUILD_IMG2WEBP'] = 'NO'
|
||||
opts['WEBP_BUILD_VWEBP'] = 'NO'
|
||||
opts['WEBP_BUILD_WEBPINFO'] = 'NO'
|
||||
opts['WEBP_BUILD_WEBPMUX'] = 'NO'
|
||||
opts['WEBP_BUILD_EXTRAS'] = 'NO'
|
||||
option_suffices = (
|
||||
'ANIM_UTILS', 'CWEBP', 'DWEBP', 'EXTRAS', 'GIF2WEBP', 'IMG2WEBP', 'VWEBP', 'WEBPINFO', 'WEBPMUX'
|
||||
)
|
||||
|
||||
for suffix in option_suffices:
|
||||
state.options[f'WEBP_BUILD_{suffix}'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
|
|
Loading…
Reference in a new issue