libbluetooth is a pretty big library and isn't used in a lot of cases
where the clients communicate with the daemon via dbus.

Signed-off-by: Lucas Stach <[email protected]>
---
 rules/bluez.in            | 6 ++++++
 rules/bluez.make          | 4 +++-
 rules/gst-plugins-bad1.in | 1 +
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/rules/bluez.in b/rules/bluez.in
index 57e0356afb0d..375c8cb2046c 100644
--- a/rules/bluez.in
+++ b/rules/bluez.in
@@ -21,6 +21,12 @@ menuconfig BLUEZ
 
 if BLUEZ
 
+config BLUEZ_LIBBLUETOOTH
+       bool "install libbluetooth"
+       help
+         Install libbluetooth used by applications not directly talking
+         to the bluez daemon via dbus.
+
 config BLUEZ_SYSTEMD_UNIT
        bool
        default y
diff --git a/rules/bluez.make b/rules/bluez.make
index d5fb6366b391..985b0d0318bb 100644
--- a/rules/bluez.make
+++ b/rules/bluez.make
@@ -44,7 +44,7 @@ BLUEZ_CONF_OPT        := $(CROSS_AUTOCONF_USR) \
        --disable-pie \
        --enable-threads \
        --disable-backtrace \
-       --enable-library \
+       --$(call ptx/endis, PTXCONF_BLUEZ_LIBBLUETOOTH)-library \
        --$(call ptx/endis, PTXCONF_BLUEZ_INSTALL_TESTSCRIPTS)-test \
        --disable-nfc \
        --disable-sap \
@@ -91,7 +91,9 @@ $(STATEDIR)/bluez.targetinstall:
        @$(call install_fixup, bluez,AUTHOR,"Uwe Kleine-Koenig 
<[email protected]>")
        @$(call install_fixup, bluez,DESCRIPTION, "Bluetooth protocol stack")
 
+ifdef PTXCONF_BLUEZ_LIBBLUETOOTH
        @$(call install_lib, bluez, 0, 0, 0644, libbluetooth)
+endif
 
        @$(call install_copy, bluez, 0, 0, 0755, -, 
/usr/libexec/bluetooth/bluetoothd)
        @$(call install_copy, bluez, 0, 0, 0755, -, 
/usr/libexec/bluetooth/obexd)
diff --git a/rules/gst-plugins-bad1.in b/rules/gst-plugins-bad1.in
index c3c467a3e921..965798f46cca 100644
--- a/rules/gst-plugins-bad1.in
+++ b/rules/gst-plugins-bad1.in
@@ -10,6 +10,7 @@ menuconfig GST_PLUGINS_BAD1
        select BZIP2                    if GST_PLUGINS_BAD1_BZ2
        select BZIP2_LIBBZ2             if GST_PLUGINS_BAD1_BZ2
        select BLUEZ                    if GST_PLUGINS_BAD1_BLUEZ
+       select BLUEZ_LIBBLUETOOTH       if GST_PLUGINS_BAD1_BLUEZ
        select LCMS                     if GST_PLUGINS_BAD1_LCMS2
        select LIBCURL                  if GST_PLUGINS_BAD1_CURL
        select LIBXML2                  if GST_PLUGINS_BAD1_DASH || 
GST_PLUGINS_BAD1_SMOOTHSTREAMING || GST_PLUGINS_BAD1_TTML
-- 
2.20.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to