1config BR2_PACKAGE_WAMPCC
2	bool "wampcc"
3	depends on BR2_INSTALL_LIBSTDCPP
4	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
5	depends on BR2_USE_MMU # libuv
6	depends on !BR2_STATIC_LIBS # libuv
7	depends on BR2_TOOLCHAIN_HAS_ATOMIC
8	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
9	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
10	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
11	select BR2_PACKAGE_LIBUV
12	select BR2_PACKAGE_JANSSON
13	select BR2_PACKAGE_OPENSSL
14	help
15	  wampcc is a C++ library that implements the Web Application
16	  Messaging Protocol.
17
18	  https://github.com/darrenjs/wampcc
19
20comment "wampcc needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.9"
21	depends on BR2_USE_MMU
22	depends on BR2_TOOLCHAIN_HAS_ATOMIC
23	depends on BR2_TOOLCHAIN_HAS_SYNC_4
24	depends on !BR2_INSTALL_LIBSTDCPP || \
25		!BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS || \
26		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
27
28comment "wampcc needs a toolchain not affected by GCC bug 64735"
29	depends on BR2_USE_MMU
30	depends on BR2_TOOLCHAIN_HAS_ATOMIC
31	depends on BR2_TOOLCHAIN_HAS_SYNC_4
32	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
33