mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 21:31:25 +00:00
build script: add sdl2_net target
This commit is contained in:
parent
0f6805e98a
commit
27172b80da
1 changed files with 14 additions and 0 deletions
14
build.py
14
build.py
|
@ -1336,6 +1336,19 @@ class Sdl2MixerTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
|
||||||
|
class Sdl2NetTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='sdl2_net'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz',
|
||||||
|
'15ce8a7e5a23dafe8177c8df6e6c79b6749a03fff1e8196742d3571657609d21')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'SDL2_net.pc.in')
|
||||||
|
|
||||||
|
|
||||||
class SndFileTarget(CMakeStaticDependencyTarget):
|
class SndFileTarget(CMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='sndfile'):
|
def __init__(self, name='sndfile'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -1733,6 +1746,7 @@ class Builder(object):
|
||||||
Sdl2Target(),
|
Sdl2Target(),
|
||||||
Sdl2ImageTarget(),
|
Sdl2ImageTarget(),
|
||||||
Sdl2MixerTarget(),
|
Sdl2MixerTarget(),
|
||||||
|
Sdl2NetTarget(),
|
||||||
SndFileTarget(),
|
SndFileTarget(),
|
||||||
VorbisTarget(),
|
VorbisTarget(),
|
||||||
VpxTarget(),
|
VpxTarget(),
|
||||||
|
|
Loading…
Reference in a new issue