From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1i3LLu-0002CP-Mq for ptxdist@pengutronix.de; Thu, 29 Aug 2019 16:24:43 +0200 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992408AbfH2OYkSGkMS (ORCPT ); Thu, 29 Aug 2019 16:24:40 +0200 Date: Thu, 29 Aug 2019 16:24:39 +0200 From: Ladislav Michl Message-ID: <20190829142439.GA28567@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH] sdbus-cpp: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de sdbus-c++ is a high-level C++ D-Bus library for Linux. Even though it uses sd-bus library, it is not necessarily constrained to systemd and can perfectly be used in non-systemd environments as well. Signed-off-by: Ladislav Michl --- Hi, inspired by recent SQLiteC++ patch, here is sdbus-c++, so far the best DBus library I'm aware of. I'm using it since v0.3.3, so you should give it a try, it amazing ;-) ladis rules/sdbus-cpp.in | 10 ++++++++ rules/sdbus-cpp.make | 57 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 rules/sdbus-cpp.in create mode 100644 rules/sdbus-cpp.make diff --git a/rules/sdbus-cpp.in b/rules/sdbus-cpp.in new file mode 100644 index 000000000..89675ecee --- /dev/null +++ b/rules/sdbus-cpp.in @@ -0,0 +1,10 @@ +## SECTION=system_libraries + +config SDBUS_CPP + tristate + prompt "sdbus-cpp" + select HOST_CMAKE + select SYSTEMD + help + D-Bus IPC C++ binding library built on top of sd-bus, + a D-Bus C library by systemd. diff --git a/rules/sdbus-cpp.make b/rules/sdbus-cpp.make new file mode 100644 index 000000000..6bac2beab --- /dev/null +++ b/rules/sdbus-cpp.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Ladislav Michl +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SDBUS_CPP) += sdbus-cpp + +# +# Paths and names +# +SDBUS_CPP_VERSION := 0.7.2 +SDBUS_CPP_MD5 := b8bbaf9002ba989778967fc4f9e31e2f +SDBUS_CPP := sdbus-cpp-$(SDBUS_CPP_VERSION) +SDBUS_CPP_SUFFIX := tar.gz +SDBUS_CPP_URL := https://github.com/Kistler-Group/sdbus-cpp/archive/v$(SDBUS_CPP_VERSION).$(SDBUS_CPP_SUFFIX) +SDBUS_CPP_SOURCE := $(SRCDIR)/$(SDBUS_CPP).$(SDBUS_CPP_SUFFIX) +SDBUS_CPP_DIR := $(BUILDDIR)/$(SDBUS_CPP) +SDBUS_CPP_LICENSE := LGPL-2.1-only + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SDBUS_CPP_CONF_TOOL := cmake +SDBUS_CPP_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DBUILD_TESTS=OFF \ + -DBUILD_CODE_GEN=OFF \ + -DBUILD_DOC=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sdbus-cpp.targetinstall: + @$(call targetinfo) + + @$(call install_init, sdbus-cpp) + @$(call install_fixup, sdbus-cpp, PRIORITY, optional) + @$(call install_fixup, sdbus-cpp, SECTION, base) + @$(call install_fixup, sdbus-cpp, AUTHOR, "Ladislav Michl ") + @$(call install_fixup, sdbus-cpp, DESCRIPTION, \ + "D-Bus IPC C++ binding library built on top of sd-bus") + + @$(call install_lib, sdbus-cpp, 0, 0, 0644, libsdbus-c++) + + @$(call install_finish, sdbus-cpp) + + @$(call touch) + +# vim: syntax=make -- 2.23.0.rc1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de