blob: 59fde47a42aca77764360f9e834e62b061fdbbaf [file] [log] [blame]
Mathieu Duponchelle920efc02018-05-17 01:28:53 +02001hb_view_sources = [
2 'hb-view.cc',
3 'options.cc',
4 'ansi-print.cc',
5 'helper-cairo.cc',
6 'helper-cairo-ansi.cc',
7 'view-cairo.cc',
8]
9
10hb_shape_sources = [
11 'hb-shape.cc',
12 'options.cc',
13]
14
15hb_ot_shape_closure_sources = [
16 'hb-ot-shape-closure.cc',
17 'options.cc',
18]
19
20hb_subset_cli_sources = [
21 'hb-subset.cc',
22 'options.cc',
Aaron Boxer68f98242019-07-22 12:12:02 -060023 'options-subset.cc',
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020024]
25
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070026if conf.get('HAVE_GLIB', 0) == 1
27 if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020028
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070029 hb_view = executable('hb-view', hb_view_sources,
30 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000031 include_directories: [incconfig, incsrc],
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070032 dependencies: deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020033 link_with: [libharfbuzz],
34 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070035 )
36 endif
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020037
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070038 hb_shape = executable('hb-shape', hb_shape_sources,
39 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000040 include_directories: [incconfig, incsrc],
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070041 dependencies: deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020042 link_with: [libharfbuzz],
43 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070044 )
Mathieu Duponchelle920efc02018-05-17 01:28:53 +020045
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070046 hb_subset = executable('hb-subset', hb_subset_cli_sources,
47 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000048 include_directories: [incconfig, incsrc],
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070049 dependencies: deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020050 link_with: [libharfbuzz, libharfbuzz_subset],
51 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070052 )
53
54 hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
55 cpp_args: cpp_args,
Tim-Philipp Müller618584e2018-11-14 20:19:36 +000056 include_directories: [incconfig, incsrc],
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070057 dependencies: deps,
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020058 link_with: [libharfbuzz],
59 install: true,
Mathieu Duponchelle99b26782018-05-17 14:53:20 -070060 )
Tim-Philipp Müller49ba2112018-11-12 15:36:27 +000061else
62 # Disable tests that use this
63 hb_shape = disabler()
64 hb_subset = disabler()
Mathieu Duponchelle484313f2018-06-05 02:15:43 +020065endif