NetworkManager/examples/C/glib
Colin Walters 1977fb6c49 build: clean up GLib-related pkg-config usage (bgo #687218)
We had separate checks for glib-2.0, gobject-2.0, gmodule-2.0, and
gio-unix-2.0.  It doesn't make sense to link a binary against all 4
because gio-unix-2.0 depends on glib-2.0 and gobject-2.0.  Doing this
actually breaks things in unusual circumstances.

Generally, few bits of NM actually just use glib, and not gio.  We
might as well coalesce those requirements together, even if it means
in some cases we "overlink".  Additionally, I chose for now to fold
gmodule-2.0 in as well, even though many fewer programs need it.  The
cost of overlinking is quite small.

The benefit of this is less repeated junk in Makefile.am, as well as
more centralized control over GLib.  A followup patch will allow us to
set -DGLIB_VERSION_MIN_REQUIRED in just one place, rather than having
to replicate it 4 times.

The NM configure is still suboptimal - for example, libpolkit-1
depends on gio-2.0, so really we should determine the compiler flags
all in one pass.  But it doesn't matter too much for now.
2012-10-31 21:08:18 +01:00
..
add-connection-dbus-glib.c examples: move glib examples to a subdir 2011-04-20 19:25:50 -05:00
add-connection-libnm-glib.c examples: move glib examples to a subdir 2011-04-20 19:25:50 -05:00
get-active-connections-dbus-glib.c examples: move glib examples to a subdir 2011-04-20 19:25:50 -05:00
get-ap-info-libnm-glib.c wifi: support ap-mode with wpa_supplicant 2012-10-17 12:08:11 -05:00
list-connections-dbus-glib.c examples: move glib examples to a subdir 2011-04-20 19:25:50 -05:00
list-connections-libnm-glib.c core: use nm_connection_get_setting_<type>() whenever possible 2011-12-06 16:06:43 -06:00
Makefile.am build: clean up GLib-related pkg-config usage (bgo #687218) 2012-10-31 21:08:18 +01:00
monitor-nm-running-dbus-glib.c examples: add C examples for monitoring whether NM runs 2012-02-03 11:55:46 +01:00
monitor-nm-running-GDBus.c examples: fix dependency on GDBus (it's available only in GLib >= 2.26) 2012-02-14 09:03:21 +01:00
monitor-nm-state-GDBus.c examples: fix dependency on GDBus (it's available only in GLib >= 2.26) 2012-02-14 09:03:21 +01:00