[gnome-settings-daemon] cursor: Add test program
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] cursor: Add test program
- Date: Tue, 13 Nov 2012 10:47:55 +0000 (UTC)
commit 6f7429d86d314a5ba22538ec14a092ea64b83cbc
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 13 10:40:33 2012 +0100
cursor: Add test program
plugins/cursor/Makefile.am | 29 +++++++++++++++++++++++++++++
plugins/cursor/test-cursor.c | 7 +++++++
2 files changed, 36 insertions(+), 0 deletions(-)
---
diff --git a/plugins/cursor/Makefile.am b/plugins/cursor/Makefile.am
index 2787d5d..13e4030 100644
--- a/plugins/cursor/Makefile.am
+++ b/plugins/cursor/Makefile.am
@@ -29,6 +29,35 @@ libcursor_la_LIBADD = \
$(CURSOR_LIBS) \
$(SETTINGS_PLUGIN_LIBS)
+libexec_PROGRAMS = gsd-test-cursor
+
+gsd_test_cursor_SOURCES = \
+ test-cursor.c \
+ gsd-cursor-manager.c \
+ gsd-cursor-manager.h
+
+gsd_test_cursor_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)
+
+gsd_test_cursor_CFLAGS = \
+ $(PLUGIN_CFLAGS) \
+ $(SETTINGS_PLUGIN_CFLAGS) \
+ $(CURSOR_CFLAGS) \
+ $(AM_CFLAGS)
+
+gsd_test_cursor_LDADD = \
+ $(top_builddir)/gnome-settings-daemon/libgsd.la \
+ $(top_builddir)/plugins/common/libcommon.la \
+ $(SETTINGS_DAEMON_LIBS) \
+ $(SETTINGS_PLUGIN_LIBS) \
+ $(CURSOR_LIBS) \
+ -lm
+
plugin_in_files = \
cursor.gnome-settings-plugin.in
diff --git a/plugins/cursor/test-cursor.c b/plugins/cursor/test-cursor.c
new file mode 100644
index 0000000..61e1c87
--- /dev/null
+++ b/plugins/cursor/test-cursor.c
@@ -0,0 +1,7 @@
+#define NEW gsd_cursor_manager_new
+#define START gsd_cursor_manager_start
+#define STOP gsd_cursor_manager_stop
+#define MANAGER GsdCursorManager
+#include "gsd-cursor-manager.h"
+
+#include "test-plugin.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]