mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-18 13:11:57 +02:00
* I enabled the shared library option to eliminate linker issues
with a package that used spdlog.
* Edited the tweak.h file so programs use the external fmt library
headers, not the oners in spdlog.
Signed-off-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 010cd128e7)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
23 lines
834 B
BlitzBasic
23 lines
834 B
BlitzBasic
DESCRIPTION = "Very fast, header only, C++ logging library."
|
|
HOMEPAGE = "https://github.com/gabime/spdlog/wiki"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRCREV = "cbe9448650176797739dbab13961ef4c07f4290f"
|
|
SRC_URI = "git://github.com/gabime/spdlog.git;protocol=git;branch=v1.x; \
|
|
file://0001-Enable-use-of-external-fmt-library.patch"
|
|
|
|
DEPENDS += "fmt"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
# no need to build example&text&benchmarks on pure yocto
|
|
EXTRA_OECMAKE += "-DSPDLOG_INSTALL=on -DSPDLOG_BUILD_SHARED=on -DSPDLOG_BUILD_EXAMPLES=off -DSPDLOG_BUILD_TESTS=off -DSPDLOG_BUILD_BENCH=off -DSPDLOG_FMT_EXTERNAL=on"
|
|
|
|
inherit cmake
|
|
|
|
# Header-only library
|
|
RDEPENDS_${PN}-dev = ""
|
|
RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
|