package/libcppconnman: add new package

libcppconnman is a C++ library that provides an easy-to-use API
to communicate with ConnMan over D-Bus using GDBus.

https://github.com/amarula/libcppconnman

Also add myself to DEVELOPERS for this package.

Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Andrea Ricchi
2026-07-21 09:33:46 +02:00
committed by Julien Olivain
parent 8e17aba6b6
commit b34c1454ea
5 changed files with 59 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ F: package/wine/
N: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
F: package/cutekeyboard/
F: package/libcppconnman/
N: Andreas Klinger <ak@it-klinger.de>
F: package/ply/

View File

@@ -2007,6 +2007,7 @@ menu "Networking"
source "package/ibrdtn/Config.in"
source "package/libcgicc/Config.in"
source "package/libcoap/Config.in"
source "package/libcppconnman/Config.in"
source "package/libcpprestsdk/Config.in"
source "package/libcurl/Config.in"
source "package/libdnet/Config.in"

View File

@@ -0,0 +1,29 @@
config BR2_PACKAGE_LIBCPPCONNMAN
bool "libcppconnman"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
select BR2_PACKAGE_LIBGLIB2
help
libcppconnman provide easy to use C++ API to communicate
with ConnMan via the DBus using GDBus.
https://amarula.github.io/libcppconnman/
comment "libcppconnman needs a toolchain w/ C++20, wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_10
if BR2_PACKAGE_LIBCPPCONNMAN
config BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE
bool "libcppconnman example"
depends on BR2_TOOLCHAIN_HAS_SYNC_1 # std::atomic<bool>
select BR2_PACKAGE_READLINE
help
Compile CLI example.
endif

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 5eb38232c3f9fcf2136c6508472841f6ee88d7155c384f4e6f2f3de1cd2fba62 libcppconnman-2.0.0.tar.gz
sha256 7ffe1954587c77dfba1cf8eb9b2ea743671fa6e63f9e7a2f258119d42e14eefe LICENSE

View File

@@ -0,0 +1,25 @@
################################################################################
#
# libcppconnman
#
################################################################################
LIBCPPCONNMAN_VERSION = 2.0.0
LIBCPPCONNMAN_SITE = $(call github,amarula,libcppconnman,v$(LIBCPPCONNMAN_VERSION))
LIBCPPCONNMAN_LICENSE = LGPL-2.1-or-later
LIBCPPCONNMAN_LICENSE_FILES = LICENSE
LIBCPPCONNMAN_INSTALL_STAGING = YES
LIBCPPCONNMAN_DEPENDENCIES = host-pkgconf libglib2
LIBCPPCONNMAN_CONF_OPTS = -DBUILD_CONNMAN=ON
ifeq ($(BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE),y)
LIBCPPCONNMAN_DEPENDENCIES += readline
LIBCPPCONNMAN_CONF_OPTS += -DBUILD_EXAMPLES=ON
else
LIBCPPCONNMAN_CONF_OPTS += -DBUILD_EXAMPLES=OFF
endif
$(eval $(cmake-package))