diff --git a/aedi/target/library_tier2.py b/aedi/target/library_tier2.py index 819ea6a4..086830eb 100644 --- a/aedi/target/library_tier2.py +++ b/aedi/target/library_tier2.py @@ -48,19 +48,6 @@ class DumbTarget(CMakeStaticDependencyTarget): return line -class FreeTypeTarget(CMakeStaticDependencyTarget): - def __init__(self, name='freetype'): - super().__init__(name) - - def prepare_source(self, state: BuildState): - state.download_source( - 'https://downloads.sourceforge.net/project/freetype/freetype2/2.10.4/freetype-2.10.4.tar.xz', - '86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784') - - def detect(self, state: BuildState) -> bool: - return os.path.exists(state.source + 'include/freetype/freetype.h') - - class FmtTarget(CMakeStaticDependencyTarget): def __init__(self, name='fmt'): super().__init__(name) @@ -78,6 +65,19 @@ class FmtTarget(CMakeStaticDependencyTarget): return os.path.exists(state.source + 'include/fmt/format.h') +class FreeTypeTarget(CMakeStaticDependencyTarget): + def __init__(self, name='freetype'): + super().__init__(name) + + def prepare_source(self, state: BuildState): + state.download_source( + 'https://downloads.sourceforge.net/project/freetype/freetype2/2.10.4/freetype-2.10.4.tar.xz', + '86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784') + + def detect(self, state: BuildState) -> bool: + return os.path.exists(state.source + 'include/freetype/freetype.h') + + class MadTarget(ConfigureMakeStaticDependencyTarget): def __init__(self, name='mad'): super().__init__(name)