config BR2_PACKAGE_VTE
	bool "vte"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS # libgtk3 -> host-libgtk3 -> host-librsvg
	depends on BR2_USE_WCHAR
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_TOOLCHAIN_USES_MUSL
	depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \
		BR2_PACKAGE_HAS_LIBGL
	select BR2_PACKAGE_LIBGTK3
	select BR2_PACKAGE_PCRE2
	help
	  VTE is a library (libvte) implementing a terminal emulator
	  widget for GTK+, and a minimal sample application (vte)
	  using that. Vte is mainly used in gnome-terminal, but
	  can also be used to embed a console/terminal in games,
	  editors, IDEs, etc.

	  http://github.com/GNOME/vte

comment "vte needs a uClibc or glibc toolchain w/ wchar, threads, C++, gcc >= 10"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \
		BR2_TOOLCHAIN_USES_MUSL

comment "vte needs an OpenGL or an OpenGL-EGL/wayland backend"
	depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_PACKAGE_HAS_LIBEGL_WAYLAND && \
		!BR2_PACKAGE_HAS_LIBGL
