diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2019-04-22 14:24:24 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-25 17:37:42 +0200 |
commit | c42babd60335893e3243cd94549284137c8a8770 (patch) | |
tree | e0091d194bb826cf0d3ad1e4c8401ef03f8e281d | |
parent | f8fec49f91b663b872534101089d060d9b02e26e (diff) | |
download | ptxdist-c42babd60335893e3243cd94549284137c8a8770.tar.gz ptxdist-c42babd60335893e3243cd94549284137c8a8770.tar.xz |
libgpiod: optionally install C++ bindings
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/libgpiod.in | 9 | ||||
-rw-r--r-- | rules/libgpiod.make | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/rules/libgpiod.in b/rules/libgpiod.in index 488af66f4..8e2217db5 100644 --- a/rules/libgpiod.in +++ b/rules/libgpiod.in @@ -3,7 +3,8 @@ menuconfig LIBGPIOD tristate prompt "libgpiod " - select PYTHON3 if LIBGPIOD_PYTHON3 + select GCCLIBS_CXX if LIBGPIOD_CXX + select PYTHON3 if LIBGPIOD_PYTHON3 help libgpiod is a library accompanied by a set of tools for interacting with the Linux GPIO character device. @@ -56,6 +57,12 @@ config LIBGPIOD_GPIOMON help Waits for events on a GPIO line +config LIBGPIOD_CXX + bool + prompt "Install C++ bindings" + help + Provides bindings for C++ + config LIBGPIOD_PYTHON3 bool prompt "Install python3 bindings" diff --git a/rules/libgpiod.make b/rules/libgpiod.make index 308960e34..3d63895a1 100644 --- a/rules/libgpiod.make +++ b/rules/libgpiod.make @@ -36,7 +36,7 @@ LIBGPIOD_CONF_OPT := \ --$(call ptx/endis, PTXCONF_LIBGPIOD_TOOLS)-tools \ --disable-install-tests \ --disable-tests \ - --disable-bindings-cxx \ + --$(call ptx/endis, PTXCONF_LIBGPIOD_CXX)-bindings-cxx \ --$(call ptx/endis, PTXCONF_LIBGPIOD_PYTHON3)-bindings-python LIBGPIOD_CONF_ENV := \ @@ -76,6 +76,9 @@ $(STATEDIR)/libgpiod.targetinstall: /usr/bin/$$tool); \ done +ifdef PTXCONF_LIBGPIOD_CXX + @$(call install_lib, libgpiod, 0, 0, 0644, libgpiodcxx) +endif ifdef PTXCONF_LIBGPIOD_PYTHON3 @$(call install_glob, libgpiod, 0, 0, -, $(PYTHON3_SITEPACKAGES),, gpiod.*) endif |