Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 1 | hb_view_sources = [ |
| 2 | 'hb-view.cc', |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 3 | ] |
| 4 | |
| 5 | hb_shape_sources = [ |
| 6 | 'hb-shape.cc', |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 7 | ] |
| 8 | |
| 9 | hb_ot_shape_closure_sources = [ |
| 10 | 'hb-ot-shape-closure.cc', |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 11 | ] |
| 12 | |
| 13 | hb_subset_cli_sources = [ |
| 14 | 'hb-subset.cc', |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 15 | ] |
| 16 | |
Christoph Reiter | 03bd6ea | 2020-06-03 23:52:10 +0200 | [diff] [blame] | 17 | util_deps = [freetype_dep, cairo_dep, cairo_ft_dep, glib_dep] |
| 18 | |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 19 | if conf.get('HAVE_GLIB', 0) == 1 |
| 20 | if conf.get('HAVE_FREETYPE', 0) == 1 and conf.get('HAVE_CAIRO_FT', 0) == 1 |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 21 | |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 22 | hb_view = executable('hb-view', hb_view_sources, |
| 23 | cpp_args: cpp_args, |
Tim-Philipp Müller | 618584e | 2018-11-14 20:19:36 +0000 | [diff] [blame] | 24 | include_directories: [incconfig, incsrc], |
Hans Petter Jansson | 8298c2f | 2021-04-23 18:37:58 +0200 | [diff] [blame] | 25 | dependencies: [util_deps, chafa_dep], |
Mathieu Duponchelle | 484313f | 2018-06-05 02:15:43 +0200 | [diff] [blame] | 26 | link_with: [libharfbuzz], |
| 27 | install: true, |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 28 | ) |
| 29 | endif |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 30 | |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 31 | hb_shape = executable('hb-shape', hb_shape_sources, |
| 32 | cpp_args: cpp_args, |
Tim-Philipp Müller | 618584e | 2018-11-14 20:19:36 +0000 | [diff] [blame] | 33 | include_directories: [incconfig, incsrc], |
Christoph Reiter | 03bd6ea | 2020-06-03 23:52:10 +0200 | [diff] [blame] | 34 | dependencies: util_deps, |
Mathieu Duponchelle | 484313f | 2018-06-05 02:15:43 +0200 | [diff] [blame] | 35 | link_with: [libharfbuzz], |
| 36 | install: true, |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 37 | ) |
Mathieu Duponchelle | 920efc0 | 2018-05-17 01:28:53 +0200 | [diff] [blame] | 38 | |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 39 | hb_subset = executable('hb-subset', hb_subset_cli_sources, |
| 40 | cpp_args: cpp_args, |
Tim-Philipp Müller | 618584e | 2018-11-14 20:19:36 +0000 | [diff] [blame] | 41 | include_directories: [incconfig, incsrc], |
Christoph Reiter | 03bd6ea | 2020-06-03 23:52:10 +0200 | [diff] [blame] | 42 | dependencies: util_deps, |
Mathieu Duponchelle | 484313f | 2018-06-05 02:15:43 +0200 | [diff] [blame] | 43 | link_with: [libharfbuzz, libharfbuzz_subset], |
| 44 | install: true, |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 45 | ) |
| 46 | |
| 47 | hb_ot_shape_closure = executable('hb-ot-shape-closure', hb_ot_shape_closure_sources, |
| 48 | cpp_args: cpp_args, |
Tim-Philipp Müller | 618584e | 2018-11-14 20:19:36 +0000 | [diff] [blame] | 49 | include_directories: [incconfig, incsrc], |
Christoph Reiter | 03bd6ea | 2020-06-03 23:52:10 +0200 | [diff] [blame] | 50 | dependencies: util_deps, |
Mathieu Duponchelle | 484313f | 2018-06-05 02:15:43 +0200 | [diff] [blame] | 51 | link_with: [libharfbuzz], |
| 52 | install: true, |
Mathieu Duponchelle | 99b2678 | 2018-05-17 14:53:20 -0700 | [diff] [blame] | 53 | ) |
Tim-Philipp Müller | 49ba211 | 2018-11-12 15:36:27 +0000 | [diff] [blame] | 54 | else |
| 55 | # Disable tests that use this |
| 56 | hb_shape = disabler() |
| 57 | hb_subset = disabler() |
Mathieu Duponchelle | 484313f | 2018-06-05 02:15:43 +0200 | [diff] [blame] | 58 | endif |