package/spdlog: support dynamic library

spdlog can install a shared library since version 1.4.0 and
45a18a61c6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2021-01-26 18:54:56 +01:00 committed by Yann E. MORIN
parent 0cadd402be
commit dd5f9edd20
2 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@ config BR2_PACKAGE_SPDLOG
depends on BR2_USE_WCHAR # fmt
select BR2_PACKAGE_FMT
help
Very fast, header only, C++ logging library.
Very fast, header-only/compiled, C++ logging library.
https://github.com/gabime/spdlog

View File

@ -8,6 +8,7 @@ SPDLOG_VERSION = 1.8.1
SPDLOG_SITE = $(call github,gabime,spdlog,v$(SPDLOG_VERSION))
SPDLOG_LICENSE = MIT
SPDLOG_LICENSE_FILES = LICENSE
SPDLOG_INSTALL_STAGING = YES
SPDLOG_DEPENDENCIES = fmt
SPDLOG_CONF_OPTS += \
-DSPDLOG_BUILD_TESTS=OFF \
@ -15,8 +16,10 @@ SPDLOG_CONF_OPTS += \
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_FMT_EXTERNAL=ON
# Header-only library
SPDLOG_INSTALL_STAGING = YES
SPDLOG_INSTALL_TARGET = NO
ifeq ($(BR2_STATIC_LIBS),y)
SPDLOG_CONF_OPTS += -DSPDLOG_BUILD_SHARED=OFF
else
SPDLOG_CONF_OPTS += -DSPDLOG_BUILD_SHARED=ON
endif
$(eval $(cmake-package))