mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 21:01:59 +00:00
aedi: add wavpack target, version 5.6.0
This commit is contained in:
parent
6b5dd45bbf
commit
5e6d17a2b8
2 changed files with 21 additions and 0 deletions
|
@ -94,6 +94,7 @@ def targets():
|
|||
SodiumTarget(),
|
||||
VulkanHeadersTarget(),
|
||||
VulkanLoaderTarget(),
|
||||
WavPackTarget(),
|
||||
XmpTarget(),
|
||||
|
||||
# Obsolete libraries without binaries
|
||||
|
|
|
@ -408,6 +408,26 @@ class VulkanLoaderTarget(base.CMakeStaticDependencyTarget):
|
|||
libs='-lvulkan', libs_private='-lc++ -framework CoreFoundation')
|
||||
|
||||
|
||||
class WavPackTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='wavpack'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, state: BuildState):
|
||||
state.download_source(
|
||||
'https://github.com/dbry/WavPack/releases/download/5.6.0/wavpack-5.6.0.tar.xz',
|
||||
'af8035f457509c3d338b895875228a9b81de276c88c79bb2d3e31d9b605da9a9')
|
||||
|
||||
def configure(self, state: BuildState):
|
||||
opts = state.options
|
||||
opts['BUILD_TESTING'] = 'NO'
|
||||
opts['WAVPACK_BUILD_DOCS'] = 'NO'
|
||||
opts['WAVPACK_BUILD_PROGRAMS'] = 'NO'
|
||||
opts['WAVPACK_ENABLE_LIBCRYPTO'] = 'NO'
|
||||
opts['WAVPACK_INSTALL_DOCS'] = 'NO'
|
||||
|
||||
super().configure(state)
|
||||
|
||||
|
||||
class XmpTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='xmp'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue