gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
gdbus/object.c gdbus/polkit.c
+plugin_LTLIBRARIES =
+
+plugin_objects =
+
builtin_modules =
builtin_sources =
builtin_cflags =
nodist_src_neard_SOURCES = src/builtin.h
AM_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ @NETLINK_CFLAGS@ $(builtin_cflags) \
- -DNEARD_PLUGIN_BUILTIN \
+ -DNEAR_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(plugindir)"\"
INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
CLEANFILES = src/builtin.h $(local_headers)
+plugindir = $(libdir)/near/plugins
+
+if MAINTAINER_MODE
+build_plugindir = $(abs_top_srcdir)/plugins/.libs
+else
+build_plugindir = $(plugindir)
+endif
+
doc_files = doc/manager-api.txt doc/target-api.txt doc/adapter-api.txt
EXTRA_DIST = src/genbuiltin $(doc_files)
test_SCRIPTS = $(test_scripts)
endif
+include Makefile.plugins
+
EXTRA_DIST += $(test_scripts)
MAINTAINERCLEANFILES = Makefile.in \
--- /dev/null
+
+plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
+ @DBUS_CFLAGS@ @GLIB_CFLAGS@
+plugin_ldflags = -no-undefined -module -avoid-version
+
+if NFCTYPE2
+if NFCTYPE2_BUILTIN
+builtin_modules += nfctype2
+builtin_sources += plugins/nfctype2.c
+else
+plugin_LTLIBRARIES += plugins/nfctype2.la
+plugin_objects += $(plugins_nfctype2_la_OBJECTS)
+plugins_nfctype2_la_CFLAGS = $(plugin_cflags)
+plugins_nfctype2_la_LDFLAGS = $(plugin_ldflags)
+endif
+endif
\ No newline at end of file
./bootstrap && \
./configure --enable-maintainer-mode \
--enable-debug \
+ --enable-nfctype2=builtin \
--prefix=/usr $*
[enable test/example scripts]), [enable_test=${enableval}])
AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
+AC_ARG_ENABLE(nfctype2,
+ AC_HELP_STRING([--enable-nfctype2], [enable NFC forum type 2 tags support]),
+ [enable_nfctype2=${enableval}], [enable_nfctype2="no"])
+AM_CONDITIONAL(NFCTYPE2, test "${enable_nfctype2}" != "no")
+AM_CONDITIONAL(NFCTYPE2_BUILTIN, test "${enable_nfctype2}" = "builtin")
+
AC_OUTPUT(Makefile include/version.h)
--- /dev/null
+/*
+ *
+ * neard - Near Field Communication manager
+ *
+ * Copyright (C) 2011 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <near/plugin.h>
+#include <near/log.h>
+
+static int nfctype2_init(void)
+{
+ DBG("");
+
+ return 0;
+}
+
+static void nfctype2_exit(void)
+{
+ DBG("");
+}
+
+NEAR_PLUGIN_DEFINE(nfctype2, "NFC Forum Type 2 tags support", VERSION,
+ NEAR_PLUGIN_PRIORITY_HIGH, nfctype2_init, nfctype2_exit)
+