mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
redis-plus-plus: clean up recipe and make use of packageconfig
Remove unneeded statements in the code. Align with style guide. Introduce PACKAGECONFIG for ssl and test. Remove QA warning. Signed-off-by: Peter Bergin <peter.bergin@windriver.com> Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
fa1910548c
commit
ea516e9563
@ -4,6 +4,8 @@ SECTION = "libs"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
|
||||
|
||||
DEPENDS += "hiredis"
|
||||
|
||||
SRC_URI = "git://github.com/sewenew/redis-plus-plus;branch=master;protocol=https \
|
||||
file://0001-include-cstdint.patch"
|
||||
SRCREV = "f3b19a8a1f609d1a1b79002802e5cf8c336dc262"
|
||||
@ -12,13 +14,13 @@ S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
EXTRA_OECMAKE += "-DREDIS_PLUS_PLUS_USE_TLS=ON"
|
||||
# if ssl is enabled for redis-plus-plus it must also be enabled for hiredis
|
||||
PACKAGECONFIG ??= "ssl"
|
||||
PACKAGECONFIG[ssl] = "-DREDIS_PLUS_PLUS_USE_TLS=ON, -DREDIS_PLUS_PLUS_USE_TLS=OFF, openssl"
|
||||
PACKAGECONFIG[test] = "-DREDIS_PLUS_PLUS_BUILD_TEST=ON, -DREDIS_PLUS_PLUS_BUILD_TEST=OFF"
|
||||
|
||||
DEPENDS += "hiredis openssl"
|
||||
|
||||
RDEPENDS:${PN} += "hiredis"
|
||||
|
||||
FILES_SOLIBSDEV = ""
|
||||
FILES:${PN} += " ${libdir}/libredis++.so*"
|
||||
|
||||
INSANE_SKIP:${PN} += "dev-so"
|
||||
do_install:append() {
|
||||
# To remove absolute path in .cmake found by QA warning [buildpaths]
|
||||
sed -i -e 's|${STAGING_LIBDIR}/libcrypto.so|crypto|g' ${D}${datadir}/cmake/redis++/redis++-targets.cmake
|
||||
sed -i -e 's|${STAGING_LIBDIR}/libssl.so|ssl|g' ${D}${datadir}/cmake/redis++/redis++-targets.cmake
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user