From ee05a2dc12df68c2312f5a9c90b66bec8400f0f5 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 3 Dec 2020 11:33:31 +0200 Subject: [PATCH] build script: add ffi target --- build.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.py b/build.py index 1be236da..832a0bdd 100755 --- a/build.py +++ b/build.py @@ -624,6 +624,19 @@ class Bzip2Target(MakeTarget): self.install(builder, self.options) +class FfiTarget(ConfigureMakeStaticDependencyTarget): + def __init__(self, name='ffi'): + super().__init__(name) + + def prepare_source(self, builder: 'Builder'): + builder.download_source( + 'https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz', + '72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056') + + def detect(self, builder: 'Builder') -> bool: + return os.path.exists(builder.source_path + 'libffi.pc.in') + + class FlacTarget(ConfigureMakeStaticDependencyTarget): def __init__(self, name='flac'): super().__init__(name) @@ -974,6 +987,7 @@ class Builder(object): # Dependencies Bzip2Target(), + FfiTarget(), FlacTarget(), JpegTurboTarget(), Mpg123Target(),