Initial Commit
- initial default booting image
This commit is contained in:
21
package/cpp-httplib/Config.in
Normal file
21
package/cpp-httplib/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
comment "cpp-httplib needs a toolchain w/ C++, wchar, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_CPP_HTTPLIB
|
||||
bool "cpp-httplib"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
A C++ header-only HTTP/HTTPS server and client library.
|
||||
|
||||
https://github.com/yhirose/cpp-httplib
|
||||
|
||||
if BR2_PACKAGE_CPP_HTTPLIB
|
||||
config BR2_PACKAGE_CPP_HTTPLIB_COMPILE
|
||||
bool "compile as a shared library"
|
||||
select BR2_PACKAGE_HOST_PYTHON3
|
||||
help
|
||||
Build as library
|
||||
|
||||
endif # BR2_PACKAGE_CPP_HTTPLIB
|
||||
3
package/cpp-httplib/cpp-httplib.hash
Normal file
3
package/cpp-httplib/cpp-httplib.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 d9ed142d319c6e19a961f477257e67f846909ce15288502188df2281941be84e cpp-httplib-0.48.0.tar.gz
|
||||
sha256 4b45cbe16d7b71b89ae6127e26e0d90a029198ca5e958ad8e3d0b8bbed364d8b LICENSE
|
||||
45
package/cpp-httplib/cpp-httplib.mk
Normal file
45
package/cpp-httplib/cpp-httplib.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# cpp-httplib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CPP_HTTPLIB_VERSION = 0.48.0
|
||||
CPP_HTTPLIB_SITE = $(call github,yhirose,cpp-httplib,v$(CPP_HTTPLIB_VERSION))
|
||||
CPP_HTTPLIB_LICENSE = MIT
|
||||
CPP_HTTPLIB_LICENSE_FILES = LICENSE
|
||||
CPP_HTTPLIB_CPE_ID_VENDOR = yhirose
|
||||
CPP_HTTPLIB_INSTALL_STAGING = YES
|
||||
CPP_HTTPLIB_CONF_OPTS = \
|
||||
-Dtest=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CPP_HTTPLIB_COMPILE),y)
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dcompile=true
|
||||
CPP_HTTPLIB_DEPENDENCIES += host-python3
|
||||
else
|
||||
# Header only library
|
||||
CPP_HTTPLIB_INSTALL_TARGET = NO
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dopenssl=enabled
|
||||
CPP_HTTPLIB_DEPENDENCIES += openssl
|
||||
else
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dopenssl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dzlib=enabled
|
||||
CPP_HTTPLIB_DEPENDENCIES += zlib
|
||||
else
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dzlib=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dbrotli=enabled
|
||||
CPP_HTTPLIB_DEPENDENCIES += brotli
|
||||
else
|
||||
CPP_HTTPLIB_CONF_OPTS += -Dbrotli=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user