mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 06:31:37 +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(),
|
||||
FlacTarget(),
|
||||
GlibTarget(),
|
||||
HighwayTarget(),
|
||||
IconvTarget(),
|
||||
IntlTarget(),
|
||||
JpegTurboTarget(),
|
||||
|
|
|
@ -175,6 +175,24 @@ class GlibTarget(base.MesonTarget):
|
|||
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):
|
||||
def __init__(self, name='iconv'):
|
||||
super().__init__(name)
|
||||
|
|
Loading…
Reference in a new issue