aedi: add lame target

This commit is contained in:
alexey.lysiuk 2022-12-26 15:33:58 +02:00
parent 81af6fdd1b
commit f5265550e7
2 changed files with 14 additions and 0 deletions

View file

@ -62,6 +62,7 @@ def targets():
InstPatchTarget(),
IntlTarget(),
JpegTurboTarget(),
LameTarget(),
MoltenVKTarget(),
Mpg123Target(),
OggTarget(),

View file

@ -284,6 +284,19 @@ class JpegTurboTarget(CMakeStaticDependencyTarget):
super().configure(state)
class LameTarget(ConfigureMakeStaticDependencyTarget):
def __init__(self, name='lame'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz',
'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e')
def detect(self, state: BuildState) -> bool:
return state.has_source_file('lame.spec')
class MoltenVKTarget(MakeTarget):
def __init__(self, name='moltenvk'):
super().__init__(name)