mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lars Alex Pedersen <lapeddk@gmail.com>
To: ptxdist@pengutronix.de
Cc: Lars Alex Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH] spdlog: New package
Date: Mon,  8 Sep 2025 10:35:37 +0200	[thread overview]
Message-ID: <20250908083537.250822-1-lapeddk@gmail.com> (raw)

Fast C++ logging library.

Configured to use fmt as external dependency, otherwise the rest of the
options is leaved default.

Signed-off-by: Lars Alex Pedersen <lapeddk@gmail.com>
---
 rules/spdlog.in   |  9 +++++
 rules/spdlog.make | 87 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)
 create mode 100644 rules/spdlog.in
 create mode 100644 rules/spdlog.make

diff --git a/rules/spdlog.in b/rules/spdlog.in
new file mode 100644
index 000000000..0ee8ca144
--- /dev/null
+++ b/rules/spdlog.in
@@ -0,0 +1,9 @@
+## SECTION=system_libraries
+
+config SPDLOG
+	tristate
+	select HOST_CMAKE
+	select FMT
+	prompt "spdlog"
+	help
+	  Fast C++ logging library
diff --git a/rules/spdlog.make b/rules/spdlog.make
new file mode 100644
index 000000000..6a337c78c
--- /dev/null
+++ b/rules/spdlog.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SPDLOG) += spdlog
+
+#
+# Paths and names
+#
+SPDLOG_VERSION		:= 1.15.3
+SPDLOG_MD5		:= fffda902bb4a04ce814ddd5328d95e8a
+SPDLOG			:= spdlog-$(SPDLOG_VERSION)
+SPDLOG_SUFFIX		:= tar.gz
+SPDLOG_URL		:= https://github.com/gabime/spdlog/archive/refs/tags/v$(SPDLOG_VERSION).$(SPDLOG_SUFFIX)
+SPDLOG_SOURCE		:= $(SRCDIR)/$(SPDLOG).$(SPDLOG_SUFFIX)
+SPDLOG_DIR		:= $(BUILDDIR)/$(SPDLOG)
+SPDLOG_LICENSE		:= MIT
+SPDLOG_LICENSE_FILES	:= file://LICENSE;md5=9573510928429ad0cbe5ba4de77546e9
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+SPDLOG_CONF_TOOL	:= cmake
+SPDLOG_CONF_OPT	:=  \
+	$(CROSS_CMAKE_USR) \
+	-DSPDLOG_BUILD_ALL:BOOL=OFF \
+	-DSPDLOG_BUILD_BENCH:BOOL=OFF \
+	-DSPDLOG_BUILD_EXAMPLE:BOOL=OFF \
+	-DSPDLOG_BUILD_EXAMPLE_HO:BOOL=OFF \
+	-DSPDLOG_BUILD_PIC:BOOL=ON \
+	-DSPDLOG_BUILD_SHARED:BOOL=ON \
+	-DSPDLOG_BUILD_TESTS:BOOL=OFF \
+	-DSPDLOG_BUILD_TESTS_HO:BOOL=OFF \
+	-DSPDLOG_BUILD_WARNINGS:BOOL=OFF \
+	-DSPDLOG_CLOCK_COARSE:BOOL=OFF \
+	-DSPDLOG_DISABLE_DEFAULT_LOGGER:BOOL=OFF \
+	-DSPDLOG_ENABLE_PCH:BOOL=OFF \
+	-DSPDLOG_FMT_EXTERNAL:BOOL=ON \
+	-DSPDLOG_FMT_EXTERNAL_HO:BOOL=OFF \
+	-DSPDLOG_FWRITE_UNLOCKED:BOOL=ON \
+	-DSPDLOG_INSTALL:BOOL=ON \
+	-DSPDLOG_NO_ATOMIC_LEVELS:BOOL=OFF \
+	-DSPDLOG_NO_EXCEPTIONS:BOOL=OFF \
+	-DSPDLOG_NO_THREAD_ID:BOOL=OFF \
+	-DSPDLOG_NO_TLS:BOOL=OFF \
+	-DSPDLOG_PREVENT_CHILD_FD:BOOL=OFF \
+	-DSPDLOG_SANITIZE_ADDRESS:BOOL=OFF \
+	-DSPDLOG_SANITIZE_THREAD:BOOL=OFF \
+	-DSPDLOG_SYSTEM_INCLUDES:BOOL=OFF \
+	-DSPDLOG_TIDY:BOOL=OFF \
+	-DSPDLOG_USE_STD_FORMAT:BOOL=OFF \
+	-DSPDLOG_WCHAR_CONSOLE:BOOL=OFF \
+	-DSPDLOG_WCHAR_FILENAMES:BOOL=OFF \
+	-DSPDLOG_WCHAR_SUPPORT:BOOL=OFF
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/spdlog.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, spdlog)
+	@$(call install_fixup, spdlog,PRIORITY,optional)
+	@$(call install_fixup, spdlog,SECTION,base)
+	@$(call install_fixup, spdlog,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, spdlog,DESCRIPTION,missing)
+
+	@$(call install_lib, spdlog, 0, 0, 0644, libspdlog)
+
+	@$(call install_finish, spdlog)
+
+	@$(call touch)
+
+# vim: ft=make noet tw=72 ts=8 sw=8
\ No newline at end of file

base-commit: 0767c9d2f959c3d23ee2b1d01546481419117b77
-- 
2.51.0




                 reply	other threads:[~2025-09-08  8:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250908083537.250822-1-lapeddk@gmail.com \
    --to=lapeddk@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox