mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 12:01:27 +00:00
build script: add mikmod target
This commit is contained in:
parent
758588f140
commit
c201fb17f2
1 changed files with 18 additions and 0 deletions
18
build.py
18
build.py
|
@ -919,6 +919,23 @@ class MesonTarget(Target):
|
||||||
zipapp.create_archive(builder.build_path, dest_path + self.name, '/usr/bin/env python3', compressed=True)
|
zipapp.create_archive(builder.build_path, dest_path + self.name, '/usr/bin/env python3', compressed=True)
|
||||||
|
|
||||||
|
|
||||||
|
class MikmodTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='mikmod'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, builder: 'Builder'):
|
||||||
|
builder.download_source(
|
||||||
|
'https://downloads.sourceforge.net/project/mikmod/libmikmod/3.3.11.1/libmikmod-3.3.11.1.tar.gz',
|
||||||
|
'ad9d64dfc8f83684876419ea7cd4ff4a41d8bcd8c23ef37ecb3a200a16b46d19')
|
||||||
|
|
||||||
|
def detect(self, builder: 'Builder') -> bool:
|
||||||
|
return os.path.exists(builder.source_path + 'libmikmod.pc.in')
|
||||||
|
|
||||||
|
def post_build(self, builder: 'Builder'):
|
||||||
|
super().post_build(builder)
|
||||||
|
Target.update_prefix_shell_script(builder.prefix_path + '/bin/libmikmod-config')
|
||||||
|
|
||||||
|
|
||||||
class MoltenVKTarget(MakeTarget):
|
class MoltenVKTarget(MakeTarget):
|
||||||
def __init__(self, name='moltenvk'):
|
def __init__(self, name='moltenvk'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
@ -1497,6 +1514,7 @@ class Builder(object):
|
||||||
JpegTurboTarget(),
|
JpegTurboTarget(),
|
||||||
MadTarget(),
|
MadTarget(),
|
||||||
MesonTarget(),
|
MesonTarget(),
|
||||||
|
MikmodTarget(),
|
||||||
MoltenVKTarget(),
|
MoltenVKTarget(),
|
||||||
Mpg123Target(),
|
Mpg123Target(),
|
||||||
NasmTarget(),
|
NasmTarget(),
|
||||||
|
|
Loading…
Reference in a new issue