1config BR2_PACKAGE_LIBPEAS
2	bool "libpeas"
3	depends on BR2_USE_MMU # gobject-introspection
4	depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
5	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gobject-introspection
6	depends on BR2_HOST_GCC_AT_LEAST_8 # gobject-introspection -> host-qemu
7	depends on BR2_TOOLCHAIN_USES_GLIBC # gobject-introspection
8	depends on BR2_PACKAGE_PYTHON3 # gobject-introspection
9	select BR2_PACKAGE_GOBJECT_INTROSPECTION
10	select BR2_PACKAGE_LIBGLIB2
11	help
12	  libpeas is a gobject-based plugins engine, and is targetted at
13	  giving every application the chance to assume its own
14	  extensibility. It also has a set of features including, but
15	  not limited to:
16	    - multiple extension points
17	    - On demand (lazy) programming language support for C,
18	      Python and Lua
19	    - Simplicity of the API
20
21	  https://wiki.gnome.org/Projects/Libpeas
22
23if BR2_PACKAGE_LIBPEAS
24
25config BR2_PACKAGE_LIBPEAS_WIDGETS
26	bool "widgets"
27	depends on BR2_PACKAGE_LIBGTK3
28	help
29	  Build GTK+ widgetry
30
31comment "widget support needs libgtk3"
32	depends on !BR2_PACKAGE_LIBGTK3
33
34endif
35
36comment "libpeas needs python3"
37	depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
38	depends on BR2_USE_MMU
39	depends on !BR2_PACKAGE_PYTHON3
40
41comment "libpeas needs a glibc toolchain, gcc >= 4.9, host gcc >= 8"
42	depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
43	depends on BR2_USE_MMU
44	depends on !BR2_TOOLCHAIN_USES_GLIBC || \
45		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_HOST_GCC_AT_LEAST_8
46