config BR2_PACKAGE_LIBCPPRESTSDK
	bool "libcpprestsdk"
	depends on BR2_ENABLE_LOCALE
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR # boost
	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS # boost-atomic, boost-filesystem
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # exception_ptr
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	select BR2_PACKAGE_BOOST
	select BR2_PACKAGE_BOOST_ATOMIC
	select BR2_PACKAGE_BOOST_CHRONO
	select BR2_PACKAGE_BOOST_DATE_TIME
	select BR2_PACKAGE_BOOST_FILESYSTEM
	select BR2_PACKAGE_BOOST_RANDOM
	select BR2_PACKAGE_BOOST_REGEX
	select BR2_PACKAGE_BOOST_SYSTEM
	select BR2_PACKAGE_BOOST_THREAD
	select BR2_PACKAGE_OPENSSL
	help
	  The C++ REST SDK is a Microsoft project for cloud-based
	  client-server communication in native code using a modern
	  asynchronous C++ API design. This project aims to help C++
	  developers connect to and interact with services.

	  https://github.com/Microsoft/cpprestsdk

comment "libcpprestsdk needs a toolchain w/ NPTL, C++, wchar, locale"
	depends on BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
		!BR2_INSTALL_LIBSTDCPP || \
		!BR2_USE_WCHAR || !BR2_ENABLE_LOCALE

comment "libcpprestsdk needs exception_ptr"
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
