Config.in 2.0 KB

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