From ee7e91dd8692f51acfde6a534766ff391000ed82 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Sun, 14 Dec 2014 16:19:25 -0500 Subject: Fix #80: Add Geoclue2 location provider This simply runs a GLib main loop when the location is requested and tries to get the location from GeoClue2. We need to run a main loop since the location is not immediately available, instead it becomes available through a signal. --- src/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 37a0308..eca9217 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,3 +66,11 @@ redshift_LDADD += \ $(GEOCLUE_LIBS) $(GEOCLUE_CFLAGS) $(GLIB_LIBS) $(GLIB_CFLAGS) endif + +if ENABLE_GEOCLUE2 +redshift_SOURCES += location-geoclue2.c location-geoclue2.h +AM_CFLAGS += \ + $(GEOCLUE2_CFLAGS) +redshift_LDADD += \ + $(GEOCLUE2_LIBS) $(GEOCLUE2_CFLAGS) +endif -- cgit v1.2.3-70-g09d2