7098ee7f61
Currently, static libray is always built as BUILD_STATIC_LIBS is ON by default so correctly set BUILD_STATIC_LIBS depending on BR2_SHARED_LIBS variable Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
25 lines
659 B
Makefile
25 lines
659 B
Makefile
################################################################################
|
|
#
|
|
# jsoncpp
|
|
#
|
|
################################################################################
|
|
|
|
JSONCPP_VERSION = 1.8.4
|
|
JSONCPP_SITE = $(call github,open-source-parsers,jsoncpp,$(JSONCPP_VERSION))
|
|
JSONCPP_LICENSE = Public Domain or MIT
|
|
JSONCPP_LICENSE_FILES = LICENSE
|
|
JSONCPP_INSTALL_STAGING = YES
|
|
|
|
JSONCPP_CONF_OPTS += \
|
|
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
|
|
-DJSONCPP_WITH_TESTS=OFF \
|
|
-DJSONCPP_WITH_STRICT_ISO=OFF
|
|
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
JSONCPP_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF
|
|
else
|
|
JSONCPP_CONF_OPTS += -DBUILD_STATIC_LIBS=ON
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|