summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2016-01-27 22:39:31 +0100
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2016-01-28 16:36:56 +0100
commitdab11e2e13a96857e4b62a89f6e8f14324d6e88c (patch)
tree9e0fa99d3d4a4e89f89e819bdf7a74db9da62c2c /data
parent384e3e009a84c3131db11a94bcea647591b2b832 (diff)
build: Option to disable the backend build
With xdg-app, we will want to bundle the client convenience library with applications that require GeoClue, without having them ship all the backend service files, which will be shipped in the core OS. Introduce a --disable-backend build option that implements this policy. https://bugs.freedesktop.org/show_bug.cgi?id=93889
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 38a1e56..fc837d0 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,9 @@
-systemconfdir = $(sysconfdir)/geoclue
+service_in_files = org.freedesktop.GeoClue2.service.in
systemconf_in_files = geoclue.conf.in
+systemdservice_in_files = geoclue.service.in
+
+if BUILD_BACKEND
+systemconfdir = $(sysconfdir)/geoclue
systemconf_DATA = $(systemconf_in_files:.conf.in=.conf)
if BUILD_DEMO_AGENT
@@ -13,7 +17,6 @@ $(systemconf_DATA): $(systemconf_in_files) Makefile
endif
servicedir = $(datadir)/dbus-1/system-services
-service_in_files = org.freedesktop.GeoClue2.service.in
service_DATA = $(service_in_files:.service.in=.service)
$(service_DATA): $(service_in_files) Makefile
@@ -25,8 +28,6 @@ dbusservicedir = $(DBUS_SYS_DIR)
dbusservice_DATA = org.freedesktop.GeoClue2.conf \
org.freedesktop.GeoClue2.Agent.conf
-systemdservice_in_files = geoclue.service.in
-
if HAVE_SYSTEMD
systemdservicedir = $(systemdsystemunitdir)
systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
@@ -35,6 +36,7 @@ $(systemdservice_DATA): $(systemdservice_in_files) Makefile
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< | \
sed -e "s|\@dbus_srv_user\@|$(dbus_srv_user)|" > $@
endif
+endif
DISTCLEANFILES = $(service_DATA) \
$(systemconf_DATA) \