Signed-off-by: Sven Püschel <[email protected]>
---
 rules/host-abseil-cpp.in   |  6 ++++++
 rules/host-abseil-cpp.make | 30 ++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 rules/host-abseil-cpp.in
 create mode 100644 rules/host-abseil-cpp.make

diff --git a/rules/host-abseil-cpp.in b/rules/host-abseil-cpp.in
new file mode 100644
index 000000000..df9010381
--- /dev/null
+++ b/rules/host-abseil-cpp.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_ABSEIL_CPP
+       tristate
+       select HOST_CMAKE
+       default y if ALLYES
diff --git a/rules/host-abseil-cpp.make b/rules/host-abseil-cpp.make
new file mode 100644
index 000000000..4bb70bc4a
--- /dev/null
+++ b/rules/host-abseil-cpp.make
@@ -0,0 +1,30 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Sven Püschel <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_ABSEIL_CPP) += host-abseil-cpp
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_ABSEIL_CPP_CONF_TOOL      := cmake
+HOST_ABSEIL_CPP_CONF_OPT        = \
+       $(HOST_CMAKE_OPT) \
+       -G Ninja \
+       -DABSL_BUILD_MONOLITHIC_SHARED_LIBS=OFF \
+       -DABSL_BUILD_TESTING=OFF \
+       -DABSL_BUILD_TEST_HELPERS=OFF \
+       -DABSL_ENABLE_INSTALL=ON \
+       -DABSL_PROPAGATE_CXX_STD=OFF \
+       -DABSL_USE_SYSTEM_INCLUDES=OFF \
+       -DBUILD_TESTING=OFF
+
+# vim: syntax=make
-- 
2.47.3


Reply via email to