Config.in 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. config BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
  2. bool
  3. default y
  4. depends on BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS
  5. # gobject-introspection programs cause a hang of Qemu on
  6. # Microblaze, and supporting GOI on Microblaze is not very
  7. # relevant.
  8. depends on !BR2_microblazeel
  9. depends on !BR2_microblazebe
  10. config BR2_PACKAGE_GOBJECT_INTROSPECTION
  11. bool "gobject-introspection"
  12. depends on BR2_USE_MMU # python3, libglib2
  13. depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
  14. # While gcc 4.8 might be compatible with gobject-introspection,
  15. # The autobuilders use some toolchains from codesourcery which
  16. # have gcc 4.8 and a very old version of glibc, which will cause
  17. # compile errors with locale.c. As such, require 4.9 until this
  18. # can be verified.
  19. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
  20. depends on BR2_HOST_GCC_AT_LEAST_8 # host-qemu
  21. depends on BR2_TOOLCHAIN_USES_GLIBC
  22. # gobject-introspection does not require python3 to run on the
  23. # target; however, because the tools run in a qemu wrapper, a
  24. # cross-compiled python3 must be installed to staging. As there
  25. # is no current mechanism to tell Buildroot only to install
  26. # python to staging, then python must also be installed
  27. # unconditionally to the target when building
  28. # gobject-introspection.
  29. depends on BR2_PACKAGE_PYTHON3
  30. select BR2_PACKAGE_HOST_QEMU
  31. select BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE
  32. select BR2_PACKAGE_LIBFFI
  33. select BR2_PACKAGE_LIBGLIB2
  34. select BR2_PACKAGE_ZLIB
  35. help
  36. GObject introspection is a middleware layer between C
  37. libraries (using GObject) and language bindings. The C library
  38. can be scanned at compile time and generate a metadata file,
  39. in addition to the actual native C library. Then at runtime,
  40. language bindings can read this metadata and automatically
  41. provide bindings to call into the C library.
  42. https://gi.readthedocs.io/
  43. comment "gobject-introspection needs python3"
  44. depends on !BR2_PACKAGE_PYTHON3
  45. depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
  46. comment "gobject-introspection needs a glibc toolchain, gcc >= 4.9, host gcc >= 8"
  47. depends on BR2_USE_MMU
  48. depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
  49. depends on !BR2_TOOLCHAIN_USES_GLIBC || \
  50. !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
  51. !BR2_HOST_GCC_AT_LEAST_8