New package: cJSON
PATCH 1/1 New package: cJSON
Signed-off-by Danomi Manchego <[email protected]>
--- package/Config.in | 1 + package/cjson/Config.in | 7 +++++++ package/cjson/cjson.mk | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 package/cjson/Config.in create mode 100644 package/cjson/cjson.mk
package/Config.in +1 -0
@@ -454,6 +454,7 @@ source "package/slang/Config.in" endmenu menu "JSON/XML" +source "package/cjson/Config.in" source "package/expat/Config.in" source "package/ezxml/Config.in" source "package/json-c/Config.in"
package/cjson/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_CJSON + bool "cJSON" + help + An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C + compliant JSON parser, under MIT license. + + http://cjson.sourceforge.net/
package/cjson/cjson.mk new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH 1/1 New package: cJSON
Quoted 1 line · Danomi Manchego
Signed-off-by Danomi Manchego<[email protected]>
[snip]
package/cjson/cjson.mk line 10
Quoted 5 lines
package/cjson/cjson.mk new file +5
-0+CJSON_VERSION = undefined +CJSON_SOURCE = cJSONFiles.zip +CJSON_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/cjson/ +CJSON_INSTALL_STAGING = YES +CJSON_INSTALL_TARGET = YES
INSTALL_TARGET = YES is the default so that line can be removed.
package/cjson/cjson.mk line 12
Quoted 2 lines
package/cjson/cjson.mk new file +2
-0+ +CJSON_ARCHIVE_DIR = cJSON
I don't really think it's useful to define this as a variable; it doesn't make
the commands below more readable.
package/cjson/cjson.mk line 15
Quoted 3 lines
package/cjson/cjson.mk new file +3
-0+ +define CJSON_EXTRACT_CMDS + unzip -o -q -d $(@D) $(DL_DIR)/$(CJSON_SOURCE)
We don't use the -o and -q options in the other packages using zip.
Otherwise, looks good.
Regards,
Arnout
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F