Skip to contentSkip to conversation

spdlog: new package

PATCH Superseded Asaf Kahlon 2 participants 3 messages Apr 27, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spdlog: new package

Very fast, header only, C++ logging library.

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/spdlog/Config.in   | 10 ++++++++++
 package/spdlog/spdlog.hash |  3 +++
 package/spdlog/spdlog.mk   | 17 +++++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/spdlog/Config.in
 create mode 100644 package/spdlog/spdlog.hash
 create mode 100644 package/spdlog/spdlog.mk
DEVELOPERS +1 -0
index 56556413aa..8a4b90d276 100644
@@ -222,6 +222,7 @@ F:	package/stress/
 N:	Asaf Kahlon <[email protected]>
 F:	package/libuv/
 F:	package/python*
+F:	package/spdlog/
 F:	package/uftp/
 F:	package/zeromq/
 
package/Config.in +1 -0
index f592e74a99..e822807a01 100644
@@ -1476,6 +1476,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
 
package/spdlog/Config.in new file +10 -0
new file mode 100644
index 0000000000..30cccba785
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SPDLOG
+	bool "spdlog"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Very fast, header only, C++ logging library.
+
+	  https://github.com/gabime/spdlog
+
+comment "spdlog needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/spdlog/spdlog.hash new file +3 -0
new file mode 100644
index 0000000000..9cbf5b22a0
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70  spdlog-1.3.1.tar.gz
+sha256 7d40b1967fca203d22b0eaf75f54566167ded823863abedf4de869fcea057038  LICENSE
package/spdlog/spdlog.mk new file +17 -0
new file mode 100644
index 0000000000..e711c72961
@@ -0,0 +1,17 @@
+################################################################################
+#
+# spdlog
+#
+################################################################################
+
+SPDLOG_VERSION = 1.3.1
+SPDLOG_SITE = $(call github,gabime,spdlog,v$(SPDLOG_VERSION))
+SPDLOG_LICENSE = MIT
+SPDLOG_LICENSE_FILES = LICENSE
+SPDLOG_CONF_OPTS += -DSPDLOG_BUILD_TESTS=NO -DSPDLOG_BUILD_EXAMPLES=NO -DSPDLOG_BUILD_BENCH=NO
+
+# Header-only library
+SPDLOG_INSTALL_STAGING = YES
+SPDLOG_INSTALL_TARGET = NO
+
+$(eval $(cmake-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 spdlog: new package

Quoted 44 lines · Asaf Kahlon

Very fast, header only, C++ logging library.

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/spdlog/Config.in   | 10 ++++++++++
 package/spdlog/spdlog.hash |  3 +++
 package/spdlog/spdlog.mk   | 17 +++++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/spdlog/Config.in
 create mode 100644 package/spdlog/spdlog.hash
 create mode 100644 package/spdlog/spdlog.mk
DEVELOPERS +1 -0
index 56556413aa..8a4b90d276 100644
@@ -222,6 +222,7 @@ F:	package/stress/
 N:	Asaf Kahlon <[email protected]>
 F:	package/libuv/
 F:	package/python*
+F:	package/spdlog/
 F:	package/uftp/
 F:	package/zeromq/
 
package/Config.in +1 -0
index f592e74a99..e822807a01 100644
@@ -1476,6 +1476,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
 
package/spdlog/Config.in new file +0 -0
new file mode 100644
index 0000000000..30cccba785

package/spdlog/Config.in line 3

Quoted 3 lines
package/spdlog/Config.in new file +3 -0
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SPDLOG
+	bool "spdlog"
+	depends on BR2_INSTALL_LIBSTDCPP

Why does it not select BR2_PACKAGE_FMT?

Note that fmt depends on WCHAR, so this one as well I guess...

Quoted 23 lines
package/spdlog/Config.in new file +7 -0
+	help
+	  Very fast, header only, C++ logging library.
+
+	  https://github.com/gabime/spdlog
+
+comment "spdlog needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/spdlog/spdlog.hash new file +3 -0
new file mode 100644
index 0000000000..9cbf5b22a0
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70  spdlog-1.3.1.tar.gz
+sha256 7d40b1967fca203d22b0eaf75f54566167ded823863abedf4de869fcea057038  LICENSE
package/spdlog/spdlog.mk new file +1 -0
new file mode 100644
index 0000000000..e711c72961
@@ -0,0 +1,17 @@
+################################################################################

package/spdlog/spdlog.mk line 11

Quoted 10 lines
package/spdlog/spdlog.mk new file +10 -0
+#
+# spdlog
+#
+################################################################################
+
+SPDLOG_VERSION = 1.3.1
+SPDLOG_SITE = $(call github,gabime,spdlog,v$(SPDLOG_VERSION))
+SPDLOG_LICENSE = MIT
+SPDLOG_LICENSE_FILES = LICENSE
+SPDLOG_CONF_OPTS += -DSPDLOG_BUILD_TESTS=NO -DSPDLOG_BUILD_EXAMPLES=NO -DSPDLOG_BUILD_BENCH=NO

... and set SPDLOG_FMT_EXTERNAL=ON?

Also, we normally use ON/OFF, not YES/NO.

package/spdlog/spdlog.mk line 15

Quoted 4 lines
package/spdlog/spdlog.mk new file +4 -0
+
+# Header-only library
+SPDLOG_INSTALL_STAGING = YES
+SPDLOG_INSTALL_TARGET = NO

It would be nice to also have a package that uses spdlog, so it gets some
testing in the autobuilders. Currently, nothing is compiled so e.g. the WCHAR dependency would not get discovered.

Regards,
Arnout

Quoted 3 lines
package/spdlog/spdlog.mk new file +2 -0
+
+$(eval $(cmake-package))
#2 lore raw

PATCH 1/1 spdlog: new package

Hello,

Quoted 54 lines · Arnout Vandecappelle
Quoted 44 lines · Asaf Kahlon

Very fast, header only, C++ logging library.

---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/spdlog/Config.in   | 10 ++++++++++
 package/spdlog/spdlog.hash |  3 +++
 package/spdlog/spdlog.mk   | 17 +++++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/spdlog/Config.in
 create mode 100644 package/spdlog/spdlog.hash
 create mode 100644 package/spdlog/spdlog.mk
DEVELOPERS +1 -0
index 56556413aa..8a4b90d276 100644
@@ -222,6 +222,7 @@ F:        package/stress/
 N:   Asaf Kahlon <[email protected]>
 F:   package/libuv/
 F:   package/python*
+F:   package/spdlog/
 F:   package/uftp/
 F:   package/zeromq/
 
package/Config.in +1 -0
index f592e74a99..e822807a01 100644
@@ -1476,6 +1476,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
 
package/spdlog/Config.in new file +0 -0
new file mode 100644
index 0000000000..30cccba785

package/spdlog/Config.in line 3

Quoted 3 lines
package/spdlog/Config.in new file +3 -0
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SPDLOG
+     bool "spdlog"
+     depends on BR2_INSTALL_LIBSTDCPP

Why does it not select BR2_PACKAGE_FMT?

Quoted 2 lines

Note that fmt depends on WCHAR, so this one as well I guess...

You're right, missed that.
I sent a v2.

Quoted 48 lines
Quoted 23 lines
package/spdlog/Config.in new file +7 -0
+     help
+       Very fast, header only, C++ logging library.
+
+       https://github.com/gabime/spdlog
+
+comment "spdlog needs a toolchain w/ C++"
+     depends on !BR2_INSTALL_LIBSTDCPP
package/spdlog/spdlog.hash new file +3 -0
new file mode 100644
index 0000000000..9cbf5b22a0
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70  spdlog-1.3.1.tar.gz
+sha256 7d40b1967fca203d22b0eaf75f54566167ded823863abedf4de869fcea057038  LICENSE
package/spdlog/spdlog.mk new file +1 -0
new file mode 100644
index 0000000000..e711c72961
@@ -0,0 +1,17 @@
+################################################################################

package/spdlog/spdlog.mk line 11

Quoted 10 lines
package/spdlog/spdlog.mk new file +10 -0
+#
+# spdlog
+#
+################################################################################
+
+SPDLOG_VERSION = 1.3.1
+SPDLOG_SITE = $(call github,gabime,spdlog,v$(SPDLOG_VERSION))
+SPDLOG_LICENSE = MIT
+SPDLOG_LICENSE_FILES = LICENSE
+SPDLOG_CONF_OPTS += -DSPDLOG_BUILD_TESTS=NO -DSPDLOG_BUILD_EXAMPLES=NO -DSPDLOG_BUILD_BENCH=NO

... and set SPDLOG_FMT_EXTERNAL=ON?

Also, we normally use ON/OFF, not YES/NO.

package/spdlog/spdlog.mk line 15

Quoted 4 lines
package/spdlog/spdlog.mk new file +4 -0
+
+# Header-only library
+SPDLOG_INSTALL_STAGING = YES
+SPDLOG_INSTALL_TARGET = NO

It would be nice to also have a package that uses spdlog, so it gets some
testing in the autobuilders. Currently, nothing is compiled so e.g. the WCHAR dependency would not get discovered.

Quoted 6 lines

Regards,
Arnout

Quoted 3 lines
package/spdlog/spdlog.mk new file +2 -0
+
+$(eval $(cmake-package))

Regards,
Asaf