mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 13:10:24 +02:00
update harfbuzz to 10.1.0
This commit is contained in:
@@ -6,26 +6,31 @@ hb_shape_sources = [
|
||||
'hb-shape.cc',
|
||||
]
|
||||
|
||||
hb_info_sources = [
|
||||
'hb-info.cc',
|
||||
]
|
||||
|
||||
hb_ot_shape_closure_sources = [
|
||||
'hb-ot-shape-closure.cc',
|
||||
]
|
||||
|
||||
hb_subset_cli_sources = [
|
||||
'hb-subset.cc',
|
||||
'helper-subset.hh',
|
||||
]
|
||||
|
||||
util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]
|
||||
|
||||
if conf.get('HAVE_GLIB', 0) == 1
|
||||
if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
|
||||
|
||||
if conf.get('HAVE_CAIRO', 0) == 1
|
||||
hb_view = executable('hb-view', hb_view_sources,
|
||||
cpp_args: cpp_args,
|
||||
include_directories: [incconfig, incsrc],
|
||||
dependencies: [util_deps, chafa_dep],
|
||||
link_with: [libharfbuzz],
|
||||
link_with: [libharfbuzz, libharfbuzz_cairo],
|
||||
install: true,
|
||||
)
|
||||
meson.override_find_program('hb-view', hb_view)
|
||||
endif
|
||||
|
||||
hb_shape = executable('hb-shape', hb_shape_sources,
|
||||
@@ -35,6 +40,16 @@ if conf.get('HAVE_GLIB', 0) == 1
|
||||
link_with: [libharfbuzz],
|
||||
install: true,
|
||||
)
|
||||
meson.override_find_program('hb-shape', hb_shape)
|
||||
|
||||
hb_info = executable('hb-info', [hb_info_sources, gobject_enums_h],
|
||||
cpp_args: cpp_args,
|
||||
include_directories: [incconfig, incsrc],
|
||||
dependencies: [util_deps, libharfbuzz_gobject_dep, chafa_dep],
|
||||
link_with: [libharfbuzz],
|
||||
install: true,
|
||||
)
|
||||
meson.override_find_program('hb-info', hb_info)
|
||||
|
||||
hb_subset = executable('hb-subset', hb_subset_cli_sources,
|
||||
cpp_args: cpp_args,
|
||||
@@ -43,6 +58,7 @@ if conf.get('HAVE_GLIB', 0) == 1
|
||||
link_with: [libharfbuzz, libharfbuzz_subset],
|
||||
install: true,
|
||||
)
|
||||
meson.override_find_program('hb-subset', hb_subset)
|
||||
|
||||
hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
|
||||
cpp_args: cpp_args,
|
||||
@@ -51,6 +67,22 @@ if conf.get('HAVE_GLIB', 0) == 1
|
||||
link_with: [libharfbuzz],
|
||||
install: true,
|
||||
)
|
||||
meson.override_find_program('hb-ot-shape-closure', hb_ot_shape_closure)
|
||||
|
||||
if get_option('experimental_api')
|
||||
test('test-hb-subset-parsing',
|
||||
executable('test-hb-subset-parsing',
|
||||
['test-hb-subset-parsing.c', 'helper-subset.hh'],
|
||||
cpp_args: cpp_args,
|
||||
c_args: ['-DHB_EXPERIMENTAL_API'],
|
||||
include_directories: [incconfig, incsrc],
|
||||
dependencies: util_deps,
|
||||
link_with: [libharfbuzz, libharfbuzz_subset],
|
||||
install: false,
|
||||
),
|
||||
workdir : meson.current_source_dir(),
|
||||
suite: ['util'])
|
||||
endif
|
||||
else
|
||||
# Disable tests that use this
|
||||
hb_shape = disabler()
|
||||
|
||||
Reference in New Issue
Block a user