meson.build 1.3 KB

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