package/poco: add new option for the Poco JWT component
authorJulien Olivain <juju@cotds.org>
Tue, 30 Jun 2020 17:34:35 +0000 (19:34 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 30 Jun 2020 20:11:11 +0000 (22:11 +0200)
Poco 1.10.0 introduced a new JWT (JSON Web Tokens). See:
https://pocoproject.org/docs/Poco.JWT.Token.html

This patch add the option to build this component.

Signed-off-by: Julien Olivain <juju@cotds.org>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/poco/Config.in
package/poco/poco.mk

index 6f743f5768159376ff1f8d8dc9e37843aaada567..24514a3714aaf46aad054fd8c89511f18603b8bd 100644 (file)
@@ -90,6 +90,11 @@ config BR2_PACKAGE_POCO_DATA_MYSQL
        select BR2_PACKAGE_POCO_DATA
        select BR2_PACKAGE_MYSQL
 
+config BR2_PACKAGE_POCO_JWT
+       bool "jwt"
+       select BR2_PACKAGE_POCO_JSON
+       select BR2_PACKAGE_POCO_CRYPTO
+
 endif # BR2_PACKAGE_POCO
 
 comment "poco needs a toolchain w/ wchar, NPTL, C++, dynamic library, gcc >= 5 w/ C++14"
index 915d0dc400bde39ef5edb4cd656675335aa80bb8..c605044ba3e4f901e8302dbc28700da52590768a 100644 (file)
@@ -17,7 +17,7 @@ POCO_DEPENDENCIES = zlib pcre \
        $(if $(BR2_PACKAGE_POCO_DATA_SQLITE),sqlite) \
        $(if $(BR2_PACKAGE_POCO_DATA_MYSQL),mysql)
 
-POCO_OMIT = Data/ODBC JWT PageCompiler \
+POCO_OMIT = Data/ODBC PageCompiler \
        $(if $(BR2_PACKAGE_POCO_JSON),,JSON) \
        $(if $(BR2_PACKAGE_POCO_XML),,XML) \
        $(if $(BR2_PACKAGE_POCO_UTIL),,Util) \
@@ -31,7 +31,8 @@ POCO_OMIT = Data/ODBC JWT PageCompiler \
        $(if $(BR2_PACKAGE_POCO_MONGODB),,MongoDB) \
        $(if $(BR2_PACKAGE_POCO_DATA),,Data) \
        $(if $(BR2_PACKAGE_POCO_DATA_MYSQL),,Data/MySQL) \
-       $(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite)
+       $(if $(BR2_PACKAGE_POCO_DATA_SQLITE),,Data/SQLite) \
+       $(if $(BR2_PACKAGE_POCO_JWT),,JWT)
 
 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
 POCO_CONF_OPTS += --no-fpenvironment --no-wstring