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
1 changed files with 13 additions and 13 deletions

View File

@ -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)