aedi: reorder fmt and freetype targets

This commit is contained in:
alexey.lysiuk 2021-06-19 10:56:56 +03:00
parent 77ee4965ea
commit 20963f40ec

View file

@ -48,19 +48,6 @@ class DumbTarget(CMakeStaticDependencyTarget):
return line 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): class FmtTarget(CMakeStaticDependencyTarget):
def __init__(self, name='fmt'): def __init__(self, name='fmt'):
super().__init__(name) super().__init__(name)
@ -78,6 +65,19 @@ class FmtTarget(CMakeStaticDependencyTarget):
return os.path.exists(state.source + 'include/fmt/format.h') 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): class MadTarget(ConfigureMakeStaticDependencyTarget):
def __init__(self, name='mad'): def __init__(self, name='mad'):
super().__init__(name) super().__init__(name)