mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-16 16:41:42 +00:00
aedi: add highway target
This commit is contained in:
parent
5853280727
commit
ad7c5ca771
2 changed files with 19 additions and 0 deletions
|
@ -58,6 +58,7 @@ def targets():
|
||||||
FfiTarget(),
|
FfiTarget(),
|
||||||
FlacTarget(),
|
FlacTarget(),
|
||||||
GlibTarget(),
|
GlibTarget(),
|
||||||
|
HighwayTarget(),
|
||||||
IconvTarget(),
|
IconvTarget(),
|
||||||
IntlTarget(),
|
IntlTarget(),
|
||||||
JpegTurboTarget(),
|
JpegTurboTarget(),
|
||||||
|
|
|
@ -175,6 +175,24 @@ class GlibTarget(base.MesonTarget):
|
||||||
return 'exec_prefix=${prefix}\n' + line if line.startswith('libdir=') else line
|
return 'exec_prefix=${prefix}\n' + line if line.startswith('libdir=') else line
|
||||||
|
|
||||||
|
|
||||||
|
class HighwayTarget(base.CMakeStaticDependencyTarget):
|
||||||
|
def __init__(self, name='highway'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, state: BuildState):
|
||||||
|
state.download_source(
|
||||||
|
'https://github.com/google/highway/archive/refs/tags/1.0.6.tar.gz',
|
||||||
|
'd89664a045a41d822146e787bceeefbf648cc228ce354f347b18f2b419e57207')
|
||||||
|
|
||||||
|
def configure(self, state: BuildState):
|
||||||
|
opts = state.options
|
||||||
|
opts['HWY_ENABLE_CONTRIB'] = 'NO'
|
||||||
|
opts['HWY_ENABLE_EXAMPLES'] = 'NO'
|
||||||
|
opts['HWY_ENABLE_TESTS'] = 'NO'
|
||||||
|
|
||||||
|
super().configure(state)
|
||||||
|
|
||||||
|
|
||||||
class IconvTarget(base.ConfigureMakeStaticDependencyTarget):
|
class IconvTarget(base.ConfigureMakeStaticDependencyTarget):
|
||||||
def __init__(self, name='iconv'):
|
def __init__(self, name='iconv'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
Loading…
Reference in a new issue