mirror of
https://github.com/love2d/megasource.git
synced 2026-08-17 11:11:35 +02:00
update freetype to 2.13.2.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Meson project file for FreeType 2
|
||||
#
|
||||
|
||||
# Copyright (C) 2020-2022 by
|
||||
# Copyright (C) 2020-2023 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
# This file is part of the FreeType project, and may only be used, modified,
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
project('freetype2', 'c',
|
||||
meson_version: '>= 0.55.0',
|
||||
default_options: ['default_library=both'],
|
||||
version: run_command('builds/meson/extract_freetype_version.py',
|
||||
'include/freetype/freetype.h',
|
||||
check: true).stdout().strip(),
|
||||
@@ -53,6 +52,8 @@ ft2_includes = include_directories('include')
|
||||
|
||||
freetype_includedir = join_paths(get_option('includedir'), 'freetype2')
|
||||
|
||||
ft2_defines = []
|
||||
|
||||
# Generate a custom `ftmodule.h` version based on the content of
|
||||
# `modules.cfg`.
|
||||
|
||||
@@ -65,6 +66,7 @@ ftmodule_h = custom_target('ftmodule.h',
|
||||
install_dir: join_paths(freetype_includedir, 'freetype/config'),
|
||||
)
|
||||
ft2_sources = [ftmodule_h]
|
||||
ft2_defines += ['-DFT_CONFIG_MODULES_H=<ftmodule.h>']
|
||||
|
||||
|
||||
# FreeType 2 modules.
|
||||
@@ -188,7 +190,7 @@ ft2_config_headers = files([
|
||||
'include/freetype/config/public-macros.h',
|
||||
])
|
||||
|
||||
ft2_defines = ['-DFT2_BUILD_LIBRARY=1']
|
||||
ft2_defines += ['-DFT2_BUILD_LIBRARY=1']
|
||||
|
||||
|
||||
# System support file.
|
||||
@@ -336,7 +338,8 @@ endif
|
||||
# Harfbuzz support
|
||||
harfbuzz_dep = dependency('harfbuzz',
|
||||
version: '>= 2.0.0',
|
||||
required: get_option('harfbuzz'))
|
||||
required: get_option('harfbuzz'),
|
||||
default_options: ['freetype=disabled'])
|
||||
|
||||
if harfbuzz_dep.found()
|
||||
ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_HARFBUZZ']
|
||||
|
||||
Reference in New Issue
Block a user