package/spdlog: new package
authorAsaf Kahlon <asafka7@gmail.com>
Sat, 27 Apr 2019 14:03:35 +0000 (17:03 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Aug 2019 17:39:33 +0000 (19:39 +0200)
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
DEVELOPERS
package/Config.in
package/spdlog/Config.in [new file with mode: 0644]
package/spdlog/spdlog.hash [new file with mode: 0644]
package/spdlog/spdlog.mk [new file with mode: 0644]

index 5073541a970e3bd1825000a2e97d4670caae9052..44e3ae02af97b9b54e86066182267a99c51230c0 100644 (file)
@@ -229,6 +229,7 @@ F:  package/stress/
 N:     Asaf Kahlon <asafka7@gmail.com>
 F:     package/libuv/
 F:     package/python*
+F:     package/spdlog/
 F:     package/uftp/
 F:     package/zeromq/
 
index 763616e70cf11341a666c6e8ba2c036721154f4f..851809d80cb232736cbf5883fdfb8fb52cd8930e 100644 (file)
@@ -1494,6 +1494,7 @@ menu "Logging"
        source "package/log4cpp/Config.in"
        source "package/log4cxx/Config.in"
        source "package/opentracing-cpp/Config.in"
+       source "package/spdlog/Config.in"
        source "package/zlog/Config.in"
 endmenu
 
diff --git a/package/spdlog/Config.in b/package/spdlog/Config.in
new file mode 100644 (file)
index 0000000..4b72177
--- /dev/null
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_SPDLOG
+       bool "spdlog"
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_USE_WCHAR # fmt
+       select BR2_PACKAGE_FMT
+       help
+         Very fast, header only, C++ logging library.
+
+         https://github.com/gabime/spdlog
+
+comment "spdlog needs a toolchain w/ C++, wchar"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR
diff --git a/package/spdlog/spdlog.hash b/package/spdlog/spdlog.hash
new file mode 100644 (file)
index 0000000..9cbf5b2
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70  spdlog-1.3.1.tar.gz
+sha256 7d40b1967fca203d22b0eaf75f54566167ded823863abedf4de869fcea057038  LICENSE
diff --git a/package/spdlog/spdlog.mk b/package/spdlog/spdlog.mk
new file mode 100644 (file)
index 0000000..7c70f5b
--- /dev/null
@@ -0,0 +1,22 @@
+################################################################################
+#
+# spdlog
+#
+################################################################################
+
+SPDLOG_VERSION = 1.3.1
+SPDLOG_SITE = $(call github,gabime,spdlog,v$(SPDLOG_VERSION))
+SPDLOG_LICENSE = MIT
+SPDLOG_LICENSE_FILES = LICENSE
+SPDLOG_DEPENDENCIES = fmt
+SPDLOG_CONF_OPTS += \
+       -DSPDLOG_BUILD_TESTS=OFF \
+       -DSPDLOG_BUILD_EXAMPLES=OFF \
+       -DSPDLOG_BUILD_BENCH=OFF \
+       -DSPDLOG_FMT_EXTERNAL=ON
+
+# Header-only library
+SPDLOG_INSTALL_STAGING = YES
+SPDLOG_INSTALL_TARGET = NO
+
+$(eval $(cmake-package))