Skip to content

Commit

Permalink
jsonmg: A basic JSON parsing and serialization library. Provides high…
Browse files Browse the repository at this point in the history
… level Lua binding to the Mongoose C Neworking library to allow reading and writing JSON data with minimal overhead

Signed-off-by: Scott Mercer <[email protected]>
  • Loading branch information
TheRootED24 committed Aug 19, 2024
1 parent a890892 commit fdab463
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions utils/jsonmg/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#
# Copyright (C) 2021 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=jsonmg
PKG_RELEASE:=1

PKG-BRANCH=main
PKG_SOURCE_URL=https://github.com/TheRootED24/jsonmg.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-08-15

PKG_SOURCE_VERSION:=6a1d6b78bc736ac680c9b0bb4b0a873ef92ba70d
PKG_MIRROR_HASH:=d9228b8354214de7a7a484b1d5b67fa183317d041990ce2a0a5d5e3496bdbbaf

PKG_MAINTAINER:=Scott Mercer <[email protected]>

PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/jsonmg
SECTION:=utils
CATEGORY:=Utilities
TITLE:= A basic JSON parsing and serialization library.
DEPENDS:=+mgjson +liblua
endef

TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/mgjson/

define Package/jsonmg/install
$(INSTALL_DIR) $(1)/usr/lib/lua/jsonmg
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipkg-install/usr/lib/lua/jsonmg/jsonmg.so $(1)/usr/lib/lua/jsonmg
endef

$(eval $(call BuildPackage,jsonmg))

0 comments on commit fdab463

Please sign in to comment.