aedi: move jpeg-turbo target to tier 3

This commit is contained in:
alexey.lysiuk 2023-10-17 09:39:41 +03:00
parent 7cedc27f0e
commit 84beb8033c
3 changed files with 18 additions and 18 deletions

View file

@ -80,7 +80,6 @@ def targets():
FluidSynthTarget(), FluidSynthTarget(),
FmtTarget(), FmtTarget(),
InstPatchTarget(), InstPatchTarget(),
JpegTurboTarget(),
MadTarget(), MadTarget(),
MikmodTarget(), MikmodTarget(),
ModPlugTarget(), ModPlugTarget(),
@ -106,6 +105,7 @@ def targets():
GlewTarget(), GlewTarget(),
HarfBuzzTarget(), HarfBuzzTarget(),
HighwayTarget(), HighwayTarget(),
JpegTurboTarget(),
LuaTarget(), LuaTarget(),
LzmaTarget(), LzmaTarget(),
Sdl2TtfTarget(), Sdl2TtfTarget(),

View file

@ -114,23 +114,6 @@ class InstPatchTarget(base.CMakeStaticDependencyTarget):
shutil.move(str(include_subpath), include_path) shutil.move(str(include_subpath), include_path)
class JpegTurboTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='jpeg-turbo'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/project/libjpeg-turbo/3.0.0/libjpeg-turbo-3.0.0.tar.gz',
'c77c65fcce3d33417b2e90432e7a0eb05f59a7fff884022a9d931775d583bfaa')
def configure(self, state: BuildState):
opts = state.options
opts['ENABLE_SHARED'] = 'NO'
opts['WITH_TURBOJPEG'] = 'NO'
super().configure(state)
class MadTarget(base.ConfigureMakeStaticDependencyTarget): class MadTarget(base.ConfigureMakeStaticDependencyTarget):
def __init__(self, name='mad'): def __init__(self, name='mad'):
super().__init__(name) super().__init__(name)

View file

@ -250,6 +250,23 @@ class HighwayTarget(base.CMakeStaticDependencyTarget):
super().configure(state) super().configure(state)
class JpegTurboTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='jpeg-turbo'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/project/libjpeg-turbo/3.0.0/libjpeg-turbo-3.0.0.tar.gz',
'c77c65fcce3d33417b2e90432e7a0eb05f59a7fff884022a9d931775d583bfaa')
def configure(self, state: BuildState):
opts = state.options
opts['ENABLE_SHARED'] = 'NO'
opts['WITH_TURBOJPEG'] = '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)