blob: fdab620fceed82997f9052cbd8d67d82fe13e659 [file] [log] [blame]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02001hb_view_sources = [
2 'hb-view.cc',
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02003]
4
5hb_shape_sources = [
6 'hb-shape.cc',
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02007]
8
9hb_ot_shape_closure_sources = [
10 'hb-ot-shape-closure.cc',
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020011]
12
13hb_subset_cli_sources = [
14 'hb-subset.cc',
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020015]
16
Christoph Reiter03bd6ea2020-06-03 23:52:10 +020017util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]
18
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070019if conf.get('HAVE_GLIB', 0) == 1
20 if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020021
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070022 hb_view = executable('hb-view', hb_view_sources,
23 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000024 include_directories: [incconfig, incsrc],
Hans Petter Jansson8298c2f2021-04-23 18:37:58 +020025 dependencies: [util_deps, chafa_dep],
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020026 link_with: [libharfbuzz],
27 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070028 )
29 endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020030
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070031 hb_shape = executable('hb-shape', hb_shape_sources,
32 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000033 include_directories: [incconfig, incsrc],
Christoph Reiter03bd6ea2020-06-03 23:52:10 +020034 dependencies: util_deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020035 link_with: [libharfbuzz],
36 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070037 )
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020038
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070039 hb_subset = executable('hb-subset', hb_subset_cli_sources,
40 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000041 include_directories: [incconfig, incsrc],
Christoph Reiter03bd6ea2020-06-03 23:52:10 +020042 dependencies: util_deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020043 link_with: [libharfbuzz, libharfbuzz_subset],
44 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070045 )
46
47 hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
48 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000049 include_directories: [incconfig, incsrc],
Christoph Reiter03bd6ea2020-06-03 23:52:10 +020050 dependencies: util_deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020051 link_with: [libharfbuzz],
52 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070053 )
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000054else
55 # Disable tests that use this
56 hb_shape = disabler()
57 hb_subset = disabler()
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020058endif