From 85564913847bd1ca7a1ad0a71bd5d9c1bfa6c2a3 Mon Sep 17 00:00:00 2001 From: Imran Zaman Date: Wed, 20 Nov 2013 15:20:20 +0200 Subject: [PATCH] install service files only when dbus is in use --- configure.ac | 1 + src/common/dbus/Makefile.am | 4 +++- src/daemon/dbus/Makefile.am | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 002c937..905fc4c 100644 --- a/configure.ac +++ b/configure.ac @@ -100,6 +100,7 @@ AC_SUBST(DBUS_CONF_DIR) AC_SUBST(MESSAGE_BUS_TYPE, [$enable_dbus_type]) AM_CONDITIONAL(HAVE_SYSTEM_BUS, [test x$enable_dbus_type = xsystem]) +AM_CONDITIONAL(USE_DBUS_SERVICE, [test x$enable_dbus_type != xp2p]) # Check for systemd VAR_SYSTEMD="`pkg-config --variable systemdsystemunitdir systemd`" diff --git a/src/common/dbus/Makefile.am b/src/common/dbus/Makefile.am index 2694b7f..4e6b551 100644 --- a/src/common/dbus/Makefile.am +++ b/src/common/dbus/Makefile.am @@ -65,13 +65,15 @@ libgum_dbus_glue_la_LIBADD = \ libgum_dbus_glue_la_SOURCES = \ $(DBUS_BUILT_SOURCES) \ $(NULL) - + +if USE_DBUS_SERVICE dbusinterfacesdir = $(DBUS_INTERFACES_DIR) dbusinterfaces_DATA = \ $(INTERFACES_DIR)/org.tizen.SecurityAccounts.gUserManagement.User.xml \ $(INTERFACES_DIR)/org.tizen.SecurityAccounts.gUserManagement.UserService.xml \ $(INTERFACES_DIR)/org.tizen.SecurityAccounts.gUserManagement.Group.xml \ $(INTERFACES_DIR)/org.tizen.SecurityAccounts.gUserManagement.GroupService.xml +endif EXTRA_DIST = interfaces diff --git a/src/daemon/dbus/Makefile.am b/src/daemon/dbus/Makefile.am index 02a2c79..8a39cde 100644 --- a/src/daemon/dbus/Makefile.am +++ b/src/daemon/dbus/Makefile.am @@ -32,11 +32,13 @@ libgumd_dbus_la_SOURCES = \ gumd-dbus-group-adapter.h \ $(NULL) +if USE_DBUS_SERVICE dbusservicedir = $(DBUS_SERVICES_DIR) dbusservice_DATA = \ $(SERVICES_DIR)/org.tizen.SecurityAccounts.gUserManagement.service nodist_dbusservice_DATA = \ $(SERVICES_DIR)/org.tizen.SecurityAccounts.gUserManagement.service +endif EXTRA_DIST = \ gumd-dbus.conf.in -- 2.7.4