-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonmg: A basic JSON parsing and serialization library. Provides high…
… 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
1 parent
a890892
commit fdab463
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |