2018-05-17 01:28:53 +02:00
|
|
|
hb_view_sources = [
|
|
|
|
'hb-view.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
hb_shape_sources = [
|
|
|
|
'hb-shape.cc',
|
|
|
|
]
|
|
|
|
|
2023-01-19 20:40:27 +01:00
|
|
|
hb_info_sources = [
|
|
|
|
'hb-info.cc',
|
|
|
|
]
|
|
|
|
|
2018-05-17 01:28:53 +02:00
|
|
|
hb_ot_shape_closure_sources = [
|
|
|
|
'hb-ot-shape-closure.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
hb_subset_cli_sources = [
|
|
|
|
'hb-subset.cc',
|
|
|
|
]
|
|
|
|
|
2020-06-03 23:52:10 +02:00
|
|
|
util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]
|
|
|
|
|
2018-05-17 23:53:20 +02:00
|
|
|
if conf.get('HAVE_GLIB', 0) == 1
|
2022-12-16 18:54:00 +01:00
|
|
|
if conf.get('HAVE_CAIRO', 0) == 1
|
2018-05-17 23:53:20 +02:00
|
|
|
hb_view = executable('hb-view', hb_view_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: [incconfig, incsrc],
|
2021-04-23 18:37:58 +02:00
|
|
|
dependencies: [util_deps, chafa_dep],
|
2022-12-25 16:50:56 +01:00
|
|
|
link_with: [libharfbuzz, libharfbuzz_cairo],
|
2018-06-05 02:15:43 +02:00
|
|
|
install: true,
|
2018-05-17 23:53:20 +02:00
|
|
|
)
|
2022-12-18 04:58:47 +01:00
|
|
|
meson.override_find_program('hb-view', hb_view)
|
2018-05-17 23:53:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
hb_shape = executable('hb-shape', hb_shape_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: util_deps,
|
2018-06-05 02:15:43 +02:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: true,
|
2018-05-17 23:53:20 +02:00
|
|
|
)
|
2022-12-18 04:58:47 +01:00
|
|
|
meson.override_find_program('hb-shape', hb_shape)
|
2018-05-17 23:53:20 +02:00
|
|
|
|
2023-01-19 20:40:27 +01:00
|
|
|
hb_info = executable('hb-info', hb_info_sources,
|
|
|
|
cpp_args: cpp_args,
|
|
|
|
include_directories: [incconfig, incsrc],
|
2023-01-22 22:12:44 +01:00
|
|
|
dependencies: [util_deps, gobject_dep],
|
|
|
|
link_with: [libharfbuzz, libharfbuzz_gobject],
|
2023-01-19 20:40:27 +01:00
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
meson.override_find_program('hb-info', hb_info)
|
|
|
|
|
2018-05-17 23:53:20 +02:00
|
|
|
hb_subset = executable('hb-subset', hb_subset_cli_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: util_deps,
|
2018-06-05 02:15:43 +02:00
|
|
|
link_with: [libharfbuzz, libharfbuzz_subset],
|
|
|
|
install: true,
|
2018-05-17 23:53:20 +02:00
|
|
|
)
|
2022-12-18 04:58:47 +01:00
|
|
|
meson.override_find_program('hb-subset', hb_subset)
|
2018-05-17 23:53:20 +02:00
|
|
|
|
|
|
|
hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: util_deps,
|
2018-06-05 02:15:43 +02:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: true,
|
2018-05-17 23:53:20 +02:00
|
|
|
)
|
2022-12-18 04:58:47 +01:00
|
|
|
meson.override_find_program('hb-ot-shape-closure', hb_ot_shape_closure)
|
2018-11-12 16:36:27 +01:00
|
|
|
else
|
|
|
|
# Disable tests that use this
|
|
|
|
hb_shape = disabler()
|
|
|
|
hb_subset = disabler()
|
2018-06-05 02:15:43 +02:00
|
|
|
endif
|