libnftnl: add JSON and XML parsing support
PATCH 1/1 libnftnl: add JSON and XML parsing support
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- package/libnftnl/Config.in | 16 ++++++++++++++++ package/libnftnl/libnftnl.mk | 14 ++++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-)
package/libnftnl/Config.in +16 -0
@@ -13,6 +13,22 @@ config BR2_PACKAGE_LIBNFTNL http://netfilter.org/projects/libnftnl/index.html +if BR2_PACKAGE_LIBNFTNL + +config BR2_PACKAGE_LIBNFTNL_JSON + bool "enable JSON support" + select BR2_PACKAGE_JANSSON + help + Enable JSON parsing support + +config BR2_PACKAGE_LIBNFTNL_XML + bool "enable XML support" + select BR2_PACKAGE_MXML + help + Enable XML parsing support + +endif + comment "libnftnl needs a toolchain w/ threads, IPv6, largefile" depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || \ !BR2_LARGEFILE
package/libnftnl/libnftnl.mk +14 -0
@@ -12,4 +12,18 @@ LIBNFTNL_LICENSE_FILES = COPYING LIBNFTNL_INSTALL_STAGING = YES LIBNFTNL_DEPENDENCIES = host-pkgconf libmnl +ifeq ($(BR2_PACKAGE_LIBNFTNL_JSON),y) +LIBNFTNL_CONF_OPT += --with-json-parsing +LIBNFTNL_DEPENDENCIES += jansson +else +LIBNFTNL_CONF_OPT += --without-json-parsing +endif + +ifeq ($(BR2_PACKAGE_LIBNFTNL_XML),y) +LIBNFTNL_CONF_OPT += --with-xml-parsing +LIBNFTNL_DEPENDENCIES += mxml +else +LIBNFTNL_CONF_OPT += --without-xml-parsing +endif + $(eval $(autotools-package))
Signature · 1 line
1.7.7
PATCH 1/1 libnftnl: add JSON and XML parsing support
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"yegorslists" == yegorslists <[email protected]> writes:
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard