mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
json-editor: add pkg to simulate javascript style json api
This commit is contained in:
parent
901c2df5cf
commit
e11950b9a1
1 changed files with 35 additions and 0 deletions
35
json-editor/Makefile
Normal file
35
json-editor/Makefile
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2008-2010 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:=json-editor
|
||||||
|
PKG_RELEASE:=1.0.0
|
||||||
|
|
||||||
|
PKG_SOURCE_VERSION:=44b32937a062ec4ffc9f7355841dc94ab6efa50f
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/json-editor.git
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
|
define Package/json-editor
|
||||||
|
SECTION:=base
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
DEPENDS:=+libjson-c +libblobmsg_json
|
||||||
|
TITLE:=JSON-editor
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/src/json-editor.h $(1)/usr/include/
|
||||||
|
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/libjson-editor.so $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,json-editor))
|
||||||
Loading…
Add table
Reference in a new issue