Config.in 2.0 KB

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