0001-src-meson.build-allow-introspection-when-cross-compi.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From 432dfd0a1d8fe0a8df89e7ce828c520c7758f10c Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Thu, 24 Sep 2020 21:00:34 +0200
  4. Subject: [PATCH] src/meson.build: allow introspection when cross-compiling
  5. introspection can be enabled when cross-compiling on certains conditions
  6. (for example it is supported by buildroot)
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. [Upstream status: https://github.com/harfbuzz/harfbuzz/pull/2692]
  9. ---
  10. src/meson.build | 5 -----
  11. 1 file changed, 5 deletions(-)
  12. diff --git a/src/meson.build b/src/meson.build
  13. index 19290245..7db43508 100644
  14. --- a/src/meson.build
  15. +++ b/src/meson.build
  16. @@ -637,11 +637,6 @@ if have_gobject
  17. gir = find_program('g-ir-scanner', required: get_option('introspection'))
  18. build_gir = gir.found()
  19. - build_gir = build_gir and not meson.is_cross_build()
  20. - if not build_gir and get_option('introspection').enabled()
  21. - error('Introspection support is requested but it isn\'t available in cross builds')
  22. - endif
  23. -
  24. build_gir = build_gir and get_option('default_library') != 'static'
  25. if not build_gir and get_option('introspection').enabled()
  26. error('Introspection support is requested but the default library option should be shared or both')
  27. --
  28. 2.28.0