config BR2_PACKAGE_QT5_JSCORE_AVAILABLE
	bool
	# Javascript engine is only available on certain architectures
	depends on BR2_arm || BR2_i386 || BR2_x86_64 || BR2_mipsel
	# ARM needs BLX, so v5t+
	depends on !(BR2_arm7tdmi || BR2_arm720t || BR2_arm920t || BR2_arm922t || BR2_fa526)
	default y

comment "Qt5 needs a toolchain w/ wchar, IPv6, threads, C++"
	depends on !BR2_PACKAGE_QT
	depends on !BR2_avr32
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS

menuconfig BR2_PACKAGE_QT5
	bool "Qt5"
	depends on !BR2_avr32
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR
	depends on BR2_INET_IPV6
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_PACKAGE_QT
	help
	  This option enables the Qt5 framework. Sub-options allow to
	  select which modules should be built.

	  http://qt-project.org

if BR2_PACKAGE_QT5
source "package/qt5/qt5base/Config.in"
source "package/qt5/qt5connectivity/Config.in"
source "package/qt5/qt5declarative/Config.in"
source "package/qt5/qt5graphicaleffects/Config.in"
source "package/qt5/qt5imageformats/Config.in"
source "package/qt5/qt5multimedia/Config.in"
source "package/qt5/qt5quick1/Config.in"
source "package/qt5/qt5quickcontrols/Config.in"
source "package/qt5/qt5script/Config.in"
source "package/qt5/qt5sensors/Config.in"
source "package/qt5/qt5serialport/Config.in"
source "package/qt5/qt5svg/Config.in"
source "package/qt5/qt5webkit/Config.in"
source "package/qt5/qt5x11extras/Config.in"
source "package/qt5/qt5xmlpatterns/Config.in"
endif
