mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-18 01:21:47 +00:00
aedi: add xmp target
This commit is contained in:
parent
220e402879
commit
2340ed4c69
2 changed files with 18 additions and 0 deletions
|
@ -96,6 +96,7 @@ def targets():
|
||||||
TiffTarget(),
|
TiffTarget(),
|
||||||
WebpTarget(),
|
WebpTarget(),
|
||||||
WxWidgetsTarget(),
|
WxWidgetsTarget(),
|
||||||
|
XmpTarget(),
|
||||||
ZstdTarget(),
|
ZstdTarget(),
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
|
|
@ -758,6 +758,23 @@ class WxWidgetsTarget(CMakeStaticDependencyTarget):
|
||||||
self.update_text_file(wx_config_path, patch_wx_config)
|
self.update_text_file(wx_config_path, patch_wx_config)
|
||||||
|
|
||||||
|
|
||||||
|
class XmpTarget(ConfigureMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='xmp'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, state: BuildState):
|
||||||
|
state.download_source(
|
||||||
|
'https://sourceforge.net/projects/xmp/files/libxmp/4.5.0/libxmp-4.5.0.tar.gz',
|
||||||
|
'7847d262112d14e8442f44e5ac6ed9ddbca54c251284720b563c852b31f26e75')
|
||||||
|
|
||||||
|
def detect(self, state: BuildState) -> bool:
|
||||||
|
return state.has_source_file('libxmp.pc.in')
|
||||||
|
|
||||||
|
def configure(self, state: BuildState):
|
||||||
|
state.options['--enable-static'] = None
|
||||||
|
super().configure(state)
|
||||||
|
|
||||||
|
|
||||||
class ZstdTarget(CMakeStaticDependencyTarget):
|
class ZstdTarget(CMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='zstd'):
|
def __init__(self, name='zstd'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
Loading…
Reference in a new issue