46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2021 ImmortalWrt
|
|
# (https://immortalwrt.org)
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rapidjson
|
|
PKG_VERSION:=1.1.0
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/Tencent/rapidjson.git
|
|
PKG_SOURCE_DATE:=2021-01-06
|
|
PKG_SOURCE_VERSION:=585042c02ba6350e10fc43df8beee1bc097f4c5f
|
|
PKG_MIRROR_HASH:=ef7d015b91f58355b02ce8356214ec7d6bdc3807d01b220834faa00afbcd7a7f
|
|
|
|
PKG_LICENSE:=BSD 3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=CN_SZTL <cnsztl@immortalwrt.org>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS+= -DRAPIDJSON_BUILD_DOC=OFF \
|
|
-DRAPIDJSON_BUILD_EXAMPLES=OFF \
|
|
-DRAPIDJSON_BUILD_TESTS=OFF
|
|
|
|
define Package/rapidjson
|
|
SECTION:=lib
|
|
CATEGORY:=Libraries
|
|
URL:=https://github.com/Tencent/rapidjson
|
|
TITLE:=rapidjson JSON parser/generator for C++
|
|
endef
|
|
|
|
define Package/rapidjson/description
|
|
A fast JSON parser/generator for C++ with both SAX/DOM style API
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,rapidjson))
|