summaryrefslogtreecommitdiff
path: root/Makefile.plugins
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-09-13 15:30:26 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-14 16:32:00 +0300
commitdb79ab254a5882220a673924f4f48fe5aa14dddd (patch)
tree051b9432dd485b09c5160eda7f05d6f9454a8ad8 /Makefile.plugins
parenta74d79da279e59fa4826c5dca880e50774f44f1a (diff)
downloadconnman-db79ab254a5882220a673924f4f48fe5aa14dddd.tar.gz
connman-db79ab254a5882220a673924f4f48fe5aa14dddd.tar.bz2
connman-db79ab254a5882220a673924f4f48fe5aa14dddd.zip
session: Fix configuration plugin build
Instead of allow the user configuring which plugin should build and used via issuing 'configure --with-configplugin=foo' add explicit enable flags 'configure --enable-session-policy'. Also with this patch, the name is changed from session-default to session-policy.
Diffstat (limited to 'Makefile.plugins')
-rw-r--r--Makefile.plugins13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.plugins b/Makefile.plugins
index 263cb208..a6cda480 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -223,8 +223,17 @@ plugins_tist_la_LDFLAGS = $(plugin_ldflags)
endif
endif
-builtin_modules += @SESSION_CONFIG_PLUGIN@
-builtin_sources += plugins/@SESSION_CONFIG_PLUGIN@.c
+if SESSION_POLICY
+if SESSION_POLICY_BUILTIN
+builtin_modules += session_policy
+builtin_sources += plugins/session_policy.c
+else
+plugin_LTLIBRARIES += plugins/session_policy.la
+plugin_objects += $(plugins_session_policy_la_OBJECTS)
+plugins_session_policy_la_CFLAGS = $(plugin_cflags)
+plugins_session_policy_la_LDFLAGS = $(plugin_ldflags)
+endif
+endif
EXTRA_DIST += plugins/polkit.policy