mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 06:17:16 +00:00
jsoncpp: upgrade 1.9.7 -> 1.9.8
Dropped patches that are merged in the upstream version. Changelog: https://github.com/open-source-parsers/jsoncpp/releases/tag/1.9.8 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
89b5f39b22
commit
d9d2f6652a
3 files changed
+1
-434
No files matched your search
@@ -0,0 +1,46 @@
|
||||
SUMMARY = "JSON C++ lib used to read and write json file."
|
||||
DESCRIPTION = "Jsoncpp is an implementation of a JSON (http://json.org) reader \
|
||||
and writer in C++. JSON (JavaScript Object Notation) is a \
|
||||
lightweight data-interchange format. It is easy for humans to \
|
||||
read and write. It is easy for machines to parse and generate."
|
||||
|
||||
HOMEPAGE = "https://github.com/open-source-parsers/jsoncpp"
|
||||
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=5d73c165a0f9e86a1342f32d19ec5926"
|
||||
|
||||
PE = "1"
|
||||
|
||||
SRCREV = "8519b8381f3c741ad1421f88237b1deda0b11412"
|
||||
SRC_URI = "git://github.com/open-source-parsers/jsoncpp;branch=master;protocol=https;tag=${PV} \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit cmake ptest
|
||||
|
||||
EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DBUILD_OBJECT_LIBS=OFF \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', '-DJSONCPP_WITH_TESTS=ON -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF', '-DJSONCPP_WITH_TESTS=OFF', d)} \
|
||||
"
|
||||
|
||||
DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'rsync-native', '', d)}"
|
||||
RDEPENDS:${PN}-ptest += "cmake python3-core"
|
||||
|
||||
do_install_ptest () {
|
||||
cp -r ${B}/bin ${D}${PTEST_PATH}
|
||||
cp -r ${S}/test ${D}${PTEST_PATH}
|
||||
|
||||
rsync -a ${B}/src ${D}${PTEST_PATH} \
|
||||
--exclude CMakeFiles \
|
||||
--exclude cmake_install.cmake \
|
||||
--exclude Makefile \
|
||||
--exclude generated
|
||||
sed -i -e 's#${B}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
|
||||
sed -i -e 's#${S}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
|
||||
sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
|
||||
sed -i -e 's#${PYTHON}#/usr/bin/python3#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
|
||||
sed -i -e 's#${WORKDIR}##g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake`
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in new issue
Block a user