config BR2_PACKAGE_WAMPCC
	bool "wampcc"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
	depends on BR2_USE_MMU # libuv
	depends on !BR2_STATIC_LIBS # libuv
	depends on BR2_TOOLCHAIN_HAS_ATOMIC
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
	select BR2_PACKAGE_LIBUV
	select BR2_PACKAGE_JANSSON
	select BR2_PACKAGE_OPENSSL
	help
	  wampcc is a C++ library that implements the Web Application
	  Messaging Protocol.

	  https://github.com/darrenjs/wampcc

comment "wampcc needs a toolchain w/ C++, NPTL, dynamic library"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_ATOMIC
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS

comment "wampcc needs a toolchain not affected by GCC bug 64735"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_ATOMIC
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
