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 2/5] abseil-cpp: Add option to build as shared library
Date: Tue, 24 Mar 2026 07:28:18 +0100	[thread overview]
Message-ID: <20260324062821.82844-2-lapeddk@gmail.com> (raw)
In-Reply-To: <20260324062821.82844-1-lapeddk@gmail.com>

Signed-off-by: Lars Alex Pedersen <lapeddk@gmail.com>
---
 rules/abseil-cpp.in   |  8 ++++++++
 rules/abseil-cpp.make | 21 ++++++++++++++++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/rules/abseil-cpp.in b/rules/abseil-cpp.in
index 00fe201ec..47e199289 100644
--- a/rules/abseil-cpp.in
+++ b/rules/abseil-cpp.in
@@ -8,3 +8,11 @@ config ABSEIL_CPP
 	help
 	   Abseil is an open-source collection of C++ library code designed
 	   to augment the C++ standard library.
+
+if ABSEIL_CPP
+
+config ABSEIL_CPP_SHARED_LIB
+	bool
+	prompt "Build as shared library"
+
+endif
diff --git a/rules/abseil-cpp.make b/rules/abseil-cpp.make
index c668e91fa..16aab371c 100644
--- a/rules/abseil-cpp.make
+++ b/rules/abseil-cpp.make
@@ -36,7 +36,8 @@ ABSEIL_CPP_CONF_TOOL	:= cmake
 ABSEIL_CPP_CONF_OPT	:=  \
 	$(CROSS_CMAKE_USR) \
 	-G Ninja \
-	-DABSL_BUILD_MONOLITHIC_SHARED_LIBS=OFF \
+	-DABSL_BUILD_MONOLITHIC_SHARED_LIBS=$(call ptx/ifdef, ABSEIL_CPP_SHARED_LIB, OFF, ON) \
+	-DBUILD_SHARED_LIBS=$(call ptx/ifdef, ABSEIL_CPP_SHARED_LIB, OFF, ON) \
 	-DABSL_BUILD_TESTING=OFF \
 	-DABSL_BUILD_TEST_HELPERS=OFF \
 	-DABSL_ENABLE_INSTALL=ON \
@@ -47,4 +48,22 @@ ABSEIL_CPP_CONF_OPT	:=  \
 ABSEIL_CPP_CXXFLAGS	:= \
 	-fPIC
 
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/abseil-cpp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, abseil-cpp)
+	@$(call install_fixup, abseil-cpp, PRIORITY, optional)
+	@$(call install_fixup, abseil-cpp, SECTION, base)
+	@$(call install_fixup, abseil-cpp, AUTHOR, "Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, abseil-cpp, DESCRIPTION, missing)
+ifdef PTXCONF_ABSEIL_CPP_SHARED_LIB
+	@$(call install_lib, abseil-cpp, 0, 0, 0644, libabseil_dll)
+endif
+	@$(call install_finish, abseil-cpp)
+	@$(call touch)
+
 # vim: syntax=make
-- 
2.53.0




  reply	other threads:[~2026-03-24  6:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24  6:28 [ptxdist] [PATCH 1/5] re2: new package Lars Alex Pedersen
2026-03-24  6:28 ` Lars Alex Pedersen [this message]
2026-03-24  6:28 ` [ptxdist] [PATCH 3/5] python3-typing-extensions: New package Lars Alex Pedersen
2026-03-24  6:28 ` [ptxdist] [PATCH 4/5] python3-protobuf: version bump 5.26.1 -> 7.34.1 Lars Alex Pedersen
2026-03-24  6:28 ` [ptxdist] [PATCH 5/5] python3-grpcio: New package Lars Alex Pedersen

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=20260324062821.82844-2-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