Skip to content

Commit

Permalink
aedi: add ffmpeg target
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Nov 25, 2024
1 parent 8f2d0a2 commit 452bdbf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions aedi/target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def targets():
DosBoxXTarget(),
DzipTarget(),
EricWToolsTarget(),
FFmpegTarget(),
GlslangTarget(),
M4Target(),
P7ZipTarget(),
Expand Down
18 changes: 18 additions & 0 deletions aedi/target/tool_tier2.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,24 @@ def prepare_source(self, state: BuildState):
patches='ericw-tools-hardcode-version')


class FFmpegTarget(base.ConfigureMakeDependencyTarget):
# TODO: fix absolute paths in bin/* and lib/*
def __init__(self, name='ffmpeg'):
super().__init__(name)

def prepare_source(self, state: BuildState):
state.download_source(
'https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz',
'40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6')

def detect(self, state: BuildState) -> bool:
return state.has_source_file('doc/ffmpeg.txt')

def configure(self, state: BuildState):
state.options['--arch'] = state.architecture()
super().configure(state)


class GlslangTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='glslang'):
super().__init__(name)
Expand Down

0 comments on commit 452bdbf

Please sign in to comment.