Imported Upstream version 2.6.7
[platform/upstream/harfbuzz.git] / util / meson.build
1 hb_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
10 hb_shape_sources = [
11   'hb-shape.cc',
12   'options.cc',
13 ]
14
15 hb_ot_shape_closure_sources = [
16   'hb-ot-shape-closure.cc',
17   'options.cc',
18 ]
19
20 hb_subset_cli_sources = [
21   'hb-subset.cc',
22   'options.cc',
23   'options-subset.cc',
24 ]
25
26 if conf.get('HAVE_GLIB', 0) == 1
27   if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1
28
29     hb_view = executable('hb-view', hb_view_sources,
30       cpp_args: cpp_args,
31       include_directories: [incconfig, incsrc],
32       dependencies: deps,
33       link_with: [libharfbuzz],
34       install: true,
35     )
36   endif
37
38   hb_shape = executable('hb-shape', hb_shape_sources,
39     cpp_args: cpp_args,
40     include_directories: [incconfig, incsrc],
41     dependencies: deps,
42     link_with: [libharfbuzz],
43     install: true,
44   )
45
46   hb_subset = executable('hb-subset', hb_subset_cli_sources,
47     cpp_args: cpp_args,
48     include_directories: [incconfig, incsrc],
49     dependencies: deps,
50     link_with: [libharfbuzz, libharfbuzz_subset],
51     install: true,
52   )
53
54   hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources,
55     cpp_args: cpp_args,
56     include_directories: [incconfig, incsrc],
57     dependencies: deps,
58     link_with: [libharfbuzz],
59     install: true,
60   )
61 else
62   # Disable tests that use this
63   hb_shape = disabler()
64   hb_subset = disabler()
65 endif