config BR2_PACKAGE_CWIID
	bool "cwiid"
	depends on !BR2_STATIC_LIBS # bluez5_utils
	depends on BR2_USE_WCHAR # bluez5_utils -> libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # bluez5_utils -> dbus, alsa-lib, libglib2
	depends on BR2_USE_MMU # bluez5_utils -> dbus, libglib2
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5_utils
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5_utils
	select BR2_PACKAGE_BLUEZ5_UTILS
	select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID # runtime
	help
	  A collection of Linux tools written in C for interfacing to
	  the Nintendo Wiimote.

	  https://github.com/abstrakraft/cwiid

if BR2_PACKAGE_CWIID
config BR2_PACKAGE_CWIID_WMGUI
	bool "wmgui"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libgtk2 -> pango -> harfbuzz
	depends on BR2_PACKAGE_XORG7 # libgtk2
	depends on BR2_USE_WCHAR # libgtk2 -> libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk2 -> libglib2
	depends on BR2_USE_MMU # libgtk2 -> libglib2
	depends on BR2_INSTALL_LIBSTDCPP # libgtk2 -> pango
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_LIBGTK2
endif

comment "cwiid needs a toolchain w/ dynamic lib, threads, wchar, headers >= 3.4"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
	depends on !BR2_USE_MMU
