1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

mjson: Initial include of package

This commit is contained in:
Koen Zandberg 2023-11-30 14:15:34 +01:00
parent f22405e7a5
commit 313e4e052f
No known key found for this signature in database
GPG Key ID: BA1718B37D79F51C
6 changed files with 44 additions and 0 deletions

View File

@ -54,6 +54,7 @@ rsource "micro-ecc/Kconfig"
rsource "microcoap/Kconfig"
rsource "micropython/Kconfig"
rsource "minmea/Kconfig"
rsource "mjson/Kconfig"
rsource "monocypher/Kconfig"
rsource "mynewt-core/Kconfig"
rsource "nanocbor/Kconfig"

9
pkg/mjson/Kconfig Normal file
View File

@ -0,0 +1,9 @@
# Copyright (c) 2023 Koen Zandberg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config PACKAGE_MJSON
bool "mjson"
depends on TEST_KCONFIG

10
pkg/mjson/Makefile Normal file
View File

@ -0,0 +1,10 @@
PKG_NAME=mjson
PKG_URL=https://github.com/cesanta/mjson
# v1.2.7
PKG_VERSION=032a2eaca1a989e56d88218f2a3cb91a68afebe8
PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
all:
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/$(PKG_NAME).mk

View File

@ -0,0 +1 @@
INCLUDES += -I$(PKGDIRBASE)/mjson/src

16
pkg/mjson/doc.txt Normal file
View File

@ -0,0 +1,16 @@
/**
* @defgroup pkg_mjson mjson
* @ingroup pkg
* @brief mjson - a JSON parser + emitter + JSON-RPC engine
*
* # Introduction
*
* mjson is a small, embedded-friendly JSON parser, emitter and JSON-RPC
* engine.
*
* # License
*
* Licensed under MIT.
*
* @see https://github.com/cesanta/mjson
*/

7
pkg/mjson/mjson.mk Normal file
View File

@ -0,0 +1,7 @@
MODULE = mjson
# The mjson_merge function requires an alloca implementation, disabled to
# prevent stack memory allocations
CFLAGS += -DMJSON_ENABLE_MERGE=0
include $(RIOTBASE)/Makefile.base