0001-meson-add-tests-option.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 466d04a57b32417dbf2d5e818af1b7593af5f802 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 3 May 2020 10:29:36 +0200
  4. Subject: [PATCH] meson: add tests option
  5. Add tests option to allow the user to build at-spi2-atk without tests,
  6. it is especially useful as one of the test requires libxml-2.0
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. [Upstream status:
  9. https://gitlab.gnome.org/GNOME/at-spi2-atk/-/merge_requests/22]
  10. ---
  11. meson.build | 4 +++-
  12. meson_options.txt | 4 ++++
  13. 2 files changed, 7 insertions(+), 1 deletion(-)
  14. diff --git a/meson.build b/meson.build
  15. index 9fce5d6..61bc93d 100644
  16. --- a/meson.build
  17. +++ b/meson.build
  18. @@ -61,4 +61,6 @@ install_data('at-spi2-atk.desktop',
  19. subdir('droute')
  20. subdir('atk-adaptor')
  21. -subdir('tests')
  22. +if get_option('tests')
  23. + subdir('tests')
  24. +endif
  25. diff --git a/meson_options.txt b/meson_options.txt
  26. index 24c9228..a4abdc2 100644
  27. --- a/meson_options.txt
  28. +++ b/meson_options.txt
  29. @@ -2,3 +2,7 @@ option('disable_p2p',
  30. description: 'Disable peer-to-peer DBus connections',
  31. type: 'boolean',
  32. value: false)
  33. +option('tests',
  34. + description: 'Whether to build tests',
  35. + type: 'boolean',
  36. + value: true)
  37. --
  38. 2.26.2