2018-05-16 23:28:53 +00:00
|
|
|
hb_view_sources = [
|
|
|
|
'hb-view.cc',
|
|
|
|
'options.cc',
|
|
|
|
'ansi-print.cc',
|
|
|
|
'helper-cairo.cc',
|
|
|
|
'helper-cairo-ansi.cc',
|
|
|
|
'view-cairo.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
hb_shape_sources = [
|
|
|
|
'hb-shape.cc',
|
|
|
|
'options.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
hb_ot_shape_closure_sources = [
|
|
|
|
'hb-ot-shape-closure.cc',
|
|
|
|
'options.cc',
|
|
|
|
]
|
|
|
|
|
|
|
|
hb_subset_cli_sources = [
|
|
|
|
'hb-subset.cc',
|
|
|
|
'options.cc',
|
2019-07-22 18:12:02 +00:00
|
|
|
'options-subset.cc',
|
2018-05-16 23:28:53 +00:00
|
|
|
]
|
|
|
|
|
2020-06-03 21:52:10 +00:00
|
|
|
util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]
|
|
|
|
|
2018-05-17 21:53:20 +00:00
|
|
|
if conf.get('HAVE_GLIB', 0) == 1
|
|
|
|
if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
|
|
|
|
|
|
|
|
hb_view = executable('hb-view', hb_view_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 20:19:36 +00:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 21:52:10 +00:00
|
|
|
dependencies: util_deps,
|
2018-06-05 00:15:43 +00:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: true,
|
2018-05-17 21:53:20 +00:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
hb_shape = executable('hb-shape', hb_shape_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 20:19:36 +00:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 21:52:10 +00:00
|
|
|
dependencies: util_deps,
|
2018-06-05 00:15:43 +00:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: true,
|
2018-05-17 21:53:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
hb_subset = executable('hb-subset', hb_subset_cli_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 20:19:36 +00:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 21:52:10 +00:00
|
|
|
dependencies: util_deps,
|
2018-06-05 00:15:43 +00:00
|
|
|
link_with: [libharfbuzz, libharfbuzz_subset],
|
|
|
|
install: true,
|
2018-05-17 21:53:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
|
|
|
|
cpp_args: cpp_args,
|
2018-11-14 20:19:36 +00:00
|
|
|
include_directories: [incconfig, incsrc],
|
2020-06-03 21:52:10 +00:00
|
|
|
dependencies: util_deps,
|
2018-06-05 00:15:43 +00:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
install: true,
|
2018-05-17 21:53:20 +00:00
|
|
|
)
|
2018-11-12 15:36:27 +00:00
|
|
|
else
|
|
|
|
# Disable tests that use this
|
|
|
|
hb_shape = disabler()
|
|
|
|
hb_subset = disabler()
|
2018-06-05 00:15:43 +00:00
|
|
|
endif
|