Skip to content

build: Specify gnome-bluetooth dependency

While building on Debian, which separates libgnome-bluetooth from libgnome-bluetooth-ui, I noticed that you need to be explicit and require both for g-c-c:

[604/730] Compiling C object panels/bluetooth/libbluetooth.a.p/cc-bluetooth-panel.c.o
FAILED: panels/bluetooth/libbluetooth.a.p/cc-bluetooth-panel.c.o 
ccache cc -Ipanels/bluetooth/libbluetooth.a.p -Ipanels/bluetooth -I../../../../gnome/gnome-control-center/panels/bluetooth -I. -I../../../../gnome/gnome-control-center -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/diegoe/gnome/install/include/gsettings-desktop-schemas -I/usr/include/libadwaita-1 -I/usr/include/gtk-4.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -I/usr/include/gnome-bluetooth-3.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -DHAVE_CONFIG_H -Wcast-align -Wmissing-field-initializers -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-strict-aliasing -Wno-sign-compare -fPIC -mfpmath=sse -msse -msse2 -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 '-DG_LOG_DOMAIN="bluetooth-cc-panel"' '-DPANEL_ID="bluetooth"' -MD -MQ panels/bluetooth/libbluetooth.a.p/cc-bluetooth-panel.c.o -MF panels/bluetooth/libbluetooth.a.p/cc-bluetooth-panel.c.o.d -o panels/bluetooth/libbluetooth.a.p/cc-bluetooth-panel.c.o -c ../../../../gnome/gnome-control-center/panels/bluetooth/cc-bluetooth-panel.c
../../../../gnome/gnome-control-center/panels/bluetooth/cc-bluetooth-panel.c:29:10: fatal error: bluetooth-settings-widget.h: No such file or directory
   29 | #include <bluetooth-settings-widget.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Merge request reports