Skip to content

Commit

Permalink
aedi: move jpeg-turbo target to tier 2
Browse files Browse the repository at this point in the history
gzdoom and raze no longer depend on it
  • Loading branch information
alexey-lysiuk committed Sep 26, 2023
1 parent b92061a commit 1244e6e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion aedi/target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def targets():
GlibTarget(),
IconvTarget(),
IntlTarget(),
JpegTurboTarget(),
LameTarget(),
MoltenVKTarget(),
Mpg123Target(),
Expand All @@ -81,6 +80,7 @@ def targets():
FluidSynthTarget(),
FmtTarget(),
InstPatchTarget(),
JpegTurboTarget(),
MadTarget(),
MikmodTarget(),
ModPlugTarget(),
Expand Down
17 changes: 0 additions & 17 deletions aedi/target/library_tier1.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,6 @@ def post_build(self, state: BuildState):
self.install(state, state.options)


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 LameTarget(base.ConfigureMakeStaticDependencyTarget):
def __init__(self, name='lame'):
super().__init__(name)
Expand Down
17 changes: 17 additions & 0 deletions aedi/target/library_tier2.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ def post_build(self, state: BuildState):
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):
def __init__(self, name='mad'):
super().__init__(name)
Expand Down

0 comments on commit 1244e6e

Please sign in to comment.