aedi: move highway target to tier 3

This commit is contained in:
alexey.lysiuk 2023-08-26 09:39:51 +03:00
parent 97f7b194d3
commit 8b7cf20552
3 changed files with 19 additions and 19 deletions

View file

@ -58,7 +58,6 @@ def targets():
FfiTarget(), FfiTarget(),
FlacTarget(), FlacTarget(),
GlibTarget(), GlibTarget(),
HighwayTarget(),
IconvTarget(), IconvTarget(),
IntlTarget(), IntlTarget(),
JpegTurboTarget(), JpegTurboTarget(),
@ -105,6 +104,7 @@ def targets():
FtglTarget(), FtglTarget(),
GlewTarget(), GlewTarget(),
HarfBuzzTarget(), HarfBuzzTarget(),
HighwayTarget(),
LuaTarget(), LuaTarget(),
LzmaTarget(), LzmaTarget(),
Sdl2TtfTarget(), Sdl2TtfTarget(),

View file

@ -175,24 +175,6 @@ 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)

View file

@ -204,6 +204,24 @@ class HarfBuzzTarget(base.CMakeStaticDependencyTarget):
libs_private='-lc++ -framework CoreFoundation -framework CoreGraphics -framework CoreText') libs_private='-lc++ -framework CoreFoundation -framework CoreGraphics -framework CoreText')
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 LuaTarget(base.MakeTarget): class LuaTarget(base.MakeTarget):
def __init__(self, name='lua'): def __init__(self, name='lua'):
super().__init__(name) super().__init__(name)