bfdcad485d
cJSON_Utils adds support for a few additional JSON RFCs. The size increase is small (around 12K for ARM32), but it is more than half the size of cJSON itself. So add a separate config option for cJSON_Utils. Cc: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# cjson
|
|
#
|
|
################################################################################
|
|
|
|
CJSON_VERSION = 1.7.15
|
|
CJSON_SITE = $(call github,DaveGamble,cjson,v$(CJSON_VERSION))
|
|
CJSON_INSTALL_STAGING = YES
|
|
CJSON_LICENSE = MIT
|
|
CJSON_LICENSE_FILES = LICENSE
|
|
CJSON_CPE_ID_VENDOR = cjson_project
|
|
# Set ENABLE_CUSTOM_COMPILER_FLAGS to OFF in particular to disable
|
|
# -fstack-protector-strong which depends on BR2_TOOLCHAIN_HAS_SSP
|
|
CJSON_CONF_OPTS += \
|
|
-DENABLE_CJSON_TEST=OFF \
|
|
-DENABLE_CUSTOM_COMPILER_FLAGS=OFF
|
|
|
|
# If BUILD_SHARED_AND_STATIC_LIBS is set to OFF, cjson uses the
|
|
# standard BUILD_SHARED_LIBS option which is passed by the
|
|
# cmake-package infrastructure.
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
CJSON_CONF_OPTS += -DBUILD_SHARED_AND_STATIC_LIBS=ON
|
|
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))
|