fdab620fceed82997f9052cbd8d67d82fe13e659
[platform/upstream/harfbuzz.git] / util / meson.build
1 hb_view_sources = [
2   'hb-view.cc',
3 ]
4
5 hb_shape_sources = [
6   'hb-shape.cc',
7 ]
8
9 hb_ot_shape_closure_sources = [
10   'hb-ot-shape-closure.cc',
11 ]
12
13 hb_subset_cli_sources = [
14   'hb-subset.cc',
15 ]
16
17 util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep]
18
19 if conf.get('HAVE_GLIB', 0) == 1
20   if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
21
22     hb_view = executable('hb-view', hb_view_sources,
23       cpp_args: cpp_args,
24       include_directories: [incconfig, incsrc],
25       dependencies: [util_deps, chafa_dep],
26       link_with: [libharfbuzz],
27       install: true,
28     )
29   endif
30
31   hb_shape = executable('hb-shape', hb_shape_sources,
32     cpp_args: cpp_args,
33     include_directories: [incconfig, incsrc],
34     dependencies: util_deps,
35     link_with: [libharfbuzz],
36     install: true,
37   )
38
39   hb_subset = executable('hb-subset', hb_subset_cli_sources,
40     cpp_args: cpp_args,
41     include_directories: [incconfig, incsrc],
42     dependencies: util_deps,
43     link_with: [libharfbuzz, libharfbuzz_subset],
44     install: true,
45   )
46
47   hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
48     cpp_args: cpp_args,
49     include_directories: [incconfig, incsrc],
50     dependencies: util_deps,
51     link_with: [libharfbuzz],
52     install: true,
53   )
54 else
55   # Disable tests that use this
56   hb_shape = disabler()
57   hb_subset = disabler()
58 endif