mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
91a0e89229
The cmake files generated by this recipe contain a number
of interfacing libraries, with absolute paths, which also
contain the TMPDIR. The TMPDIR part of these paths were
just truncated by the recipe, to avoid the corresponding
QA check error.
However this made it impossible to to link against this
library from other recipes. When one tried, the find_package
command failed with the following error:
| Run Build Command(s): ninja -v -j 12 all
| ninja: error: '/usr/lib/libjsoncpp.so', needed by 'jsonrpctest', missing and no known rule to make it
To avoid this, instead of just truncating this path, set it to
${CMAKE_SYSROOT} placeholder (which is resolved by CMake to
the correct value at build-time, using the variable set by
cmake.bbclass)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
33 lines
1.1 KiB
BlitzBasic
33 lines
1.1 KiB
BlitzBasic
SUMMARY = "C++ framework for json-rpc 1.0 and 2.0"
|
|
DESCRIPTION = "JsonRpc-Cpp is an OpenSource implementation of JSON-RPC \
|
|
protocol in C++. JSON-RPC is a lightweight remote procedure \
|
|
call protocol similar to XML-RPC."
|
|
HOMEPAGE = "https://github.com/cinemast/libjson-rpc-cpp"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4e728c5b36018f6c383b4b9efd9c8840"
|
|
SECTION = "libs"
|
|
|
|
DEPENDS = "curl jsoncpp libmicrohttpd hiredis"
|
|
|
|
SRC_URI = "git://github.com/cinemast/libjson-rpc-cpp;branch=master;protocol=https"
|
|
|
|
SRCREV = "ec5ce12fc9c0299e1454cc002c70218b5a6f005b"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
PACKAGECONFIG ?= ""
|
|
PACKAGECONFIG[coverage] = "-DWITH_COVERAGE=YES,-DWITH_COVERAGE=NO,,"
|
|
|
|
inherit cmake
|
|
|
|
EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO \
|
|
-DBUILD_SHARED_LIBS=YES -DBUILD_STATIC_LIBS=YES \
|
|
-DCMAKE_LIBRARY_PATH=${libdir} \
|
|
"
|
|
|
|
do_install:append() {
|
|
sed -i -e 's#${RECIPE_SYSROOT}#\${CMAKE_SYSROOT}#g' ${D}${libdir}/libjson-rpc-cpp/cmake/libjson-rpc-cppTargets.cmake
|
|
}
|
|
|
|
FILES:${PN}-dev += "${libdir}/libjson-rpc-cpp/cmake"
|