1config BR2_PACKAGE_GRPC
2	bool "grpc"
3	depends on BR2_INSTALL_LIBSTDCPP
4	depends on BR2_TOOLCHAIN_HAS_THREADS # protobuf, re2
5	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # protobuf
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # libabseil-cpp, re2
7	depends on !BR2_STATIC_LIBS # protobuf, libabseil-cpp, re2
8	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC
9	depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS
10	select BR2_PACKAGE_C_ARES
11	select BR2_PACKAGE_LIBABSEIL_CPP
12	select BR2_PACKAGE_OPENSSL
13	select BR2_PACKAGE_PROTOBUF
14	select BR2_PACKAGE_RE2
15	select BR2_PACKAGE_ZLIB
16	help
17	  A language-neutral, platform-neutral, open source, remote
18	  procedure call (RPC) system initially developed at Google.
19
20	  http://github.com/grpc/grpc
21
22comment "grpc needs a toolchain w/ C++, threads, dynamic library, gcc >= 8"
23	depends on BR2_PACKAGE_LIBABSEIL_CPP_ARCH_SUPPORTS
24	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_ATOMIC
25	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
26		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_8
27	depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
28