diff --git a/package/cjson/Config.in b/package/cjson/Config.in index ee18fced5c..55262a0990 100644 --- a/package/cjson/Config.in +++ b/package/cjson/Config.in @@ -5,3 +5,14 @@ config BR2_PACKAGE_CJSON ANSI-C compliant JSON parser, under MIT license. https://github.com/DaveGamble/cJSON + +if BR2_PACKAGE_CJSON + +config BR2_PACKAGE_CJSON_UTILS + bool "cJSON utils" + help + Supplementary library with support for JSON Pointer + (RFC-6901), JSON Patch (RFC-6902), JSON Merge Patch + (RFC-7386), and more. + +endif diff --git a/package/cjson/cjson.mk b/package/cjson/cjson.mk index ac8db5701f..ad9d76a4ba 100644 --- a/package/cjson/cjson.mk +++ b/package/cjson/cjson.mk @@ -25,4 +25,10 @@ else CJSON_CONF_OPTS += -DBUILD_SHARED_AND_STATIC_LIBS=OFF endif +ifeq ($(BR2_PACKAGE_CJSON_UTILS),y) +CJSON_CONF_OPTS += -DENABLE_CJSON_UTILS=ON +else +CJSON_CONF_OPTS += -DENABLE_CJSON_UTILS=OFF +endif + $(eval $(cmake-package))