Skip to contentSkip to conversation

cjson: add recipe for v1.7.13

PATCH Superseded Ting Liu 2 participants 2 messages Apr 24, 2020 – Apr 25, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ting Liu

author
#0 lore raw

PATCH 1/1 cjson: add recipe for v1.7.13

From: Ting Liu <[email protected]>

cJSON aims to be the dumbest possible parser that you can get your job done with. It's a single file of C, and a single header file.

Homepage: https://github.com/DaveGamble/cJSON

---
 meta-oe/recipes-devtools/cjson/cjson_git.bb | 23 +++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cjson/cjson_git.bb
meta-oe/recipes-devtools/cjson/cjson_git.bb new file +23 -0
new file mode 100644
index 000000000..7a9ebf07b
@@ -0,0 +1,23 @@
+DESCRIPTION = "Ultralightweight JSON parser in ANSI C"
+AUTHOR = "Dave Gamble"
+HOMEPAGE = "https://github.com/DaveGamble/cJSON"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0"
+
+SRC_URI = "git://github.com/DaveGamble/cJSON.git"
+SRCREV = "39853e5148dad8dc5d32ea2b00943cf4a0c6f120"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE += "\
+    -DENABLE_CUSTOM_COMPILER_FLAGS=OFF \
+    -DBUILD_SHARED_AND_STATIC_LIBS=On \
+"
+
+FILES_${PN}-dev += "\
+    ${libdir}/cmake \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.0
#1 lore raw
Quoted 19 lines · Ting Liu

From: Ting Liu <[email protected]>

cJSON aims to be the dumbest possible parser that you can get your job done with. It's a single file of C, and a single header file.

Homepage: https://github.com/DaveGamble/cJSON

---
 meta-oe/recipes-devtools/cjson/cjson_git.bb | 23 +++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cjson/cjson_git.bb
meta-oe/recipes-devtools/cjson/cjson_git.bb new file +0 -0
new file mode 100644
index 000000000..7a9ebf07b

meta-oe/recipes-devtools/cjson/cjson_git.bb line 9

Quoted 9 lines
meta-oe/recipes-devtools/cjson/cjson_git.bb new file +9 -0
@@ -0,0 +1,23 @@
+DESCRIPTION = "Ultralightweight JSON parser in ANSI C"
+AUTHOR = "Dave Gamble"
+HOMEPAGE = "https://github.com/DaveGamble/cJSON"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0"
+
+SRC_URI = "git://github.com/DaveGamble/cJSON.git"
+SRCREV = "39853e5148dad8dc5d32ea2b00943cf4a0c6f120"
+

Pleae set PV = "1.7.13" if thats what SRCREV is pointing to

Quoted 5 lines
meta-oe/recipes-devtools/cjson/cjson_git.bb new file +4 -0
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+

meta-oe/recipes-devtools/cjson/cjson_git.bb line 23

Quoted 10 lines
meta-oe/recipes-devtools/cjson/cjson_git.bb new file +10 -0
+EXTRA_OECMAKE += "\
+    -DENABLE_CUSTOM_COMPILER_FLAGS=OFF \
+    -DBUILD_SHARED_AND_STATIC_LIBS=On \
+"
+
+FILES_${PN}-dev += "\
+    ${libdir}/cmake \
+"
+
+BBCLASSEXTEND = "native nativesdk"

There are few more implementations around see
http://layers.openembedded.org/layerindex/branch/master/recipes/?q=cjson

please consolidate best changes from all of them so they can also use this version.

Quoted 3 lines