mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-29 07:02:27 +00:00
build script: add sodium target
This commit is contained in:
parent
363a237829
commit
fdd594f282
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -1360,6 +1360,19 @@ class SndFileTarget(CMakeStaticDependencyTarget):
|
||||||
return os.path.exists(builder.source_path + 'sndfile.pc.in')
|
return os.path.exists(builder.source_path + 'sndfile.pc.in')
|
||||||
|
|
||||||
|
|
||||||
|
class SodiumTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='sodium'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz',
|
||||||
|
'6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'libsodium.pc.in')
|
||||||
|
|
||||||
|
|
||||||
class VorbisTarget(ConfigureMakeStaticDependencyTarget):
|
class VorbisTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='vorbis'):
|
def __init__(self, name='vorbis'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -1743,6 +1756,7 @@ class Builder(object):
|
||||||
Sdl2NetTarget(),
|
Sdl2NetTarget(),
|
||||||
Sdl2TtfTarget(),
|
Sdl2TtfTarget(),
|
||||||
SndFileTarget(),
|
SndFileTarget(),
|
||||||
|
SodiumTarget(),
|
||||||
VorbisTarget(),
|
VorbisTarget(),
|
||||||
VpxTarget(),
|
VpxTarget(),
|
||||||
WebpTarget(),
|
WebpTarget(),
|
||||||
|
|
Loading…
Reference in a new issue