config BR2_PACKAGE_LIBCAMERA_APPS
	bool "libcamera-apps"
	depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS # libcamera
	depends on BR2_INSTALL_LIBSTDCPP # libcamera/boost
	depends on BR2_TOOLCHAIN_HAS_THREADS # libcamera/boost
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libcamera
	depends on !BR2_STATIC_LIBS # gnutls/libcamera
	depends on BR2_USE_WCHAR # gnutls/libcamera/boost
	select BR2_PACKAGE_BOOST
	select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
	select BR2_PACKAGE_JPEG
	select BR2_PACKAGE_LIBCAMERA
	select BR2_PACKAGE_LIBEXIF
	select BR2_PACKAGE_LIBPNG
	select BR2_PACKAGE_TIFF
	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
	select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
	select BR2_PACKAGE_LIBEPOXY if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
	select BR2_PACKAGE_QT5BASE_GUI if BR2_PACKAGE_QT5
	select BR2_PACKAGE_QT5BASE_WIDGETS if BR2_PACKAGE_QT5
	help
	  This is a small suite of libcamera-based apps that aim to copy
	  the functionality of the existing "raspicam" apps.

	  https://github.com/raspberrypi/libcamera-apps

comment "libcamera-apps needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8"
	depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_STATIC_LIBS || !BR2_USE_WCHAR
