You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/jsoncpp.mk

23 lines
847 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := jsoncpp
$(PKG)_WEBSITE := https://github.com/open-source-parsers/jsoncpp
$(PKG)_DESCR := A C++ library for interacting with JSON
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.9.1
$(PKG)_CHECKSUM := c7b40f5605dd972108f503f031b20186f5e5bca2b65cd4b8bd6c3e4ba8126697
$(PKG)_GH_CONF := open-source-parsers/jsoncpp/tags,,,svn
$(PKG)_DEPS := cc
# workaround for builds with GCC >= 6.x
$(PKG)_CXXFLAGS := -Wno-error=conversion -Wno-shift-negative-value
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
-DCMAKE_CXX_FLAGS="$($(PKG)_CXXFLAGS)" \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
$(MAKE) -C '$(BUILD_DIR)' -j $(JOBS)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef