generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
33
package/libcpprestsdk/Config.in
Normal file
33
package/libcpprestsdk/Config.in
Normal file
@ -0,0 +1,33 @@
|
||||
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_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
|
||||
3
package/libcpprestsdk/libcpprestsdk.hash
Normal file
3
package/libcpprestsdk/libcpprestsdk.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 6bd74a637ff182144b6a4271227ea8b6b3ea92389f88b25b215e6f94fd4d41cb libcpprestsdk-2.10.18.tar.gz
|
||||
sha256 5c191789f502ac87df83b57008d2fc3e47fbf31315381b5bc4309f6602d0fe97 license.txt
|
||||
55
package/libcpprestsdk/libcpprestsdk.mk
Normal file
55
package/libcpprestsdk/libcpprestsdk.mk
Normal file
@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcpprestsdk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCPPRESTSDK_VERSION = 2.10.18
|
||||
LIBCPPRESTSDK_SITE = $(call github,Microsoft,cpprestsdk,$(LIBCPPRESTSDK_VERSION))
|
||||
LIBCPPRESTSDK_LICENSE = MIT
|
||||
LIBCPPRESTSDK_LICENSE_FILES = license.txt
|
||||
LIBCPPRESTSDK_SUBDIR = Release
|
||||
LIBCPPRESTSDK_INSTALL_STAGING = YES
|
||||
LIBCPPRESTSDK_DEPENDENCIES += host-pkgconf boost openssl
|
||||
LIBCPPRESTSDK_CONF_OPTS = -DWERROR=OFF -DBUILD_SAMPLES=OFF
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LIBCPPRESTSDK_CONF_OPTS += \
|
||||
-DBoost_USE_STATIC_LIBS=ON \
|
||||
-DBoost_USE_STATIC_RUNTIME=ON
|
||||
endif
|
||||
|
||||
LIBCPPRESTSDK_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
LIBCPPRESTSDK_CXXFLAGS += -latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
LIBCPPRESTSDK_DEPENDENCIES += zlib
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=OFF
|
||||
# brotli needs compression
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
LIBCPPRESTSDK_DEPENDENCIES += brotli
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=OFF
|
||||
else
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_BROTLI=ON
|
||||
endif
|
||||
else
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_COMPRESSION=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WEBSOCKETPP),y)
|
||||
LIBCPPRESTSDK_DEPENDENCIES += websocketpp
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=OFF
|
||||
else
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCPPREST_EXCLUDE_WEBSOCKETS=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
LIBCPPRESTSDK_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
LIBCPPRESTSDK_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBCPPRESTSDK_CXXFLAGS)"
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user