aedi: add highway target

This commit is contained in:
alexey.lysiuk 2023-08-23 17:52:28 +03:00
parent 5853280727
commit ad7c5ca771
2 changed files with 19 additions and 0 deletions

View file

@ -58,6 +58,7 @@ def targets():
FfiTarget(),
FlacTarget(),
GlibTarget(),
HighwayTarget(),
IconvTarget(),
IntlTarget(),
JpegTurboTarget(),

View file

@ -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)