44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
#
|
|
# Copyright (C) 2021 ImmortalWrt.org
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rapidjson
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/Tencent/rapidjson.git
|
|
PKG_SOURCE_DATE:=2022-08-23
|
|
PKG_SOURCE_VERSION:=06d58b9e848c650114556a23294d0b6440078c61
|
|
PKG_MIRROR_HASH:=3513dbcb4fdd5438adbe9cc348359c76d114a2cbf53de89866fc50cba992719b
|
|
|
|
PKG_LICENSE:=BSD 3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Tianling Shen <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++
|
|
BUILDONLY:=1
|
|
endef
|
|
|
|
define Package/rapidjson/description
|
|
A fast JSON parser/generator for C++ with both SAX/DOM style API
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,rapidjson))
|