1hb_view_sources = [ 2 'hb-view.cc', 3] 4 5hb_shape_sources = [ 6 'hb-shape.cc', 7] 8 9hb_info_sources = [ 10 'hb-info.cc', 11] 12 13hb_ot_shape_closure_sources = [ 14 'hb-ot-shape-closure.cc', 15] 16 17hb_subset_cli_sources = [ 18 'hb-subset.cc', 19] 20 21util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep] 22 23if conf.get('HAVE_GLIB', 0) == 1 24 if conf.get('HAVE_CAIRO', 0) == 1 25 hb_view = executable('hb-view', hb_view_sources, 26 cpp_args: cpp_args, 27 include_directories: [incconfig, incsrc], 28 dependencies: [util_deps, chafa_dep], 29 link_with: [libharfbuzz, libharfbuzz_cairo], 30 install: true, 31 ) 32 meson.override_find_program('hb-view', hb_view) 33 endif 34 35 hb_shape = executable('hb-shape', hb_shape_sources, 36 cpp_args: cpp_args, 37 include_directories: [incconfig, incsrc], 38 dependencies: util_deps, 39 link_with: [libharfbuzz], 40 install: true, 41 ) 42 meson.override_find_program('hb-shape', hb_shape) 43 44 hb_info = executable('hb-info', [hb_info_sources, gobject_enums_h], 45 cpp_args: cpp_args, 46 include_directories: [incconfig, incsrc], 47 dependencies: [util_deps, libharfbuzz_gobject_dep, chafa_dep], 48 link_with: [libharfbuzz], 49 install: true, 50 ) 51 meson.override_find_program('hb-info', hb_info) 52 53 hb_subset = executable('hb-subset', hb_subset_cli_sources, 54 cpp_args: cpp_args, 55 include_directories: [incconfig, incsrc], 56 dependencies: util_deps, 57 link_with: [libharfbuzz, libharfbuzz_subset], 58 install: true, 59 ) 60 meson.override_find_program('hb-subset', hb_subset) 61 62 hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources, 63 cpp_args: cpp_args, 64 include_directories: [incconfig, incsrc], 65 dependencies: util_deps, 66 link_with: [libharfbuzz], 67 install: true, 68 ) 69 meson.override_find_program('hb-ot-shape-closure', hb_ot_shape_closure) 70else 71 # Disable tests that use this 72 hb_shape = disabler() 73 hb_subset = disabler() 74endif 75