[gnome-settings-daemon] mouse: Add test application



commit a9e35b7295b5f632a0b69ed3e2a983eff767f5c2
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 25 18:18:41 2012 +0100

    mouse: Add test application

 plugins/mouse/Makefile.am  |   28 ++++++++++++++++++++++++++++
 plugins/mouse/test-mouse.c |    7 +++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mouse/Makefile.am b/plugins/mouse/Makefile.am
index 8299cd4..af7c291 100644
--- a/plugins/mouse/Makefile.am
+++ b/plugins/mouse/Makefile.am
@@ -52,6 +52,34 @@ gsd_locate_pointer_LDADD  = 		\
 	$(MOUSE_LIBS)			\
 	-lm
 
+noinst_PROGRAMS = test-mouse
+
+test_mouse_SOURCES =			\
+	test-mouse.c			\
+	gsd-mouse-manager.c		\
+	gsd-mouse-manager.h
+
+test_mouse_CPPFLAGS = \
+	-I$(top_srcdir)/data/					\
+	-I$(top_srcdir)/gnome-settings-daemon			\
+	-I$(top_srcdir)/plugins/common				\
+	-DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\"	\
+	-DLIBEXECDIR=\""$(libexecdir)"\"			\
+	$(AM_CPPFLAGS)
+
+test_mouse_CFLAGS =			\
+	$(SETTINGS_PLUGIN_CFLAGS)	\
+	$(MOUSE_CFLAGS)		\
+	$(AM_CFLAGS)
+
+test_mouse_LDADD =						\
+	$(top_builddir)/gnome-settings-daemon/libgsd.la		\
+	$(top_builddir)/plugins/common/libcommon.la		\
+	$(SETTINGS_DAEMON_LIBS)			\
+	$(SETTINGS_PLUGIN_LIBS)			\
+	$(MOUSE_LIBS)			\
+	-lm
+
 EXTRA_DIST = $(plugin_in_files)
 CLEANFILES = $(plugin_DATA)
 DISTCLEANFILES = $(plugin_DATA)
diff --git a/plugins/mouse/test-mouse.c b/plugins/mouse/test-mouse.c
new file mode 100644
index 0000000..d978dc9
--- /dev/null
+++ b/plugins/mouse/test-mouse.c
@@ -0,0 +1,7 @@
+#define NEW gsd_mouse_manager_new
+#define START gsd_mouse_manager_start
+#define STOP gsd_mouse_manager_stop
+#define MANAGER GsdMouseManager
+#include "gsd-mouse-manager.h"
+
+#include "test-plugin.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]