mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-01-19 06:30:53 +00:00
build script: add freetype target
This commit is contained in:
parent
9a254b77fb
commit
95b4f020e1
2 changed files with 15 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,6 +10,7 @@
|
|||
/deps/bzip2/man/
|
||||
/deps/flac/bin/
|
||||
/deps/fluidsynth/bin/
|
||||
/deps/freetype/lib/cmake/
|
||||
/deps/glib/bin/gdbus*
|
||||
/deps/glib/bin/gio*
|
||||
/deps/glib/bin/glib-compile*
|
||||
|
|
14
build.py
14
build.py
|
@ -769,6 +769,19 @@ class FluidSynthTarget(CMakeStaticDependencyTarget):
|
|||
return line
|
||||
|
||||
|
||||
class FreetypeTarget(CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='freetype'):
|
||||
super().__init__(name)
|
||||
|
||||
def prepare_source(self, builder: 'Builder'):
|
||||
builder.download_source(
|
||||
'https://downloads.sourceforge.net/project/freetype/freetype2/2.10.4/freetype-2.10.4.tar.xz',
|
||||
'86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784')
|
||||
|
||||
def detect(self, builder: 'Builder') -> bool:
|
||||
return os.path.exists(builder.source_path + 'include/freetype/freetype.h')
|
||||
|
||||
|
||||
class GettextTarget(ConfigureMakeStaticDependencyTarget):
|
||||
def __init__(self, name='gettext'):
|
||||
super().__init__(name)
|
||||
|
@ -1566,6 +1579,7 @@ class Builder(object):
|
|||
FfiTarget(),
|
||||
FlacTarget(),
|
||||
FluidSynthTarget(),
|
||||
FreetypeTarget(),
|
||||
GlibTarget(),
|
||||
IconvTarget(),
|
||||
InstPatchTarget(),
|
||||
|
|
Loading…
Reference in a new issue