[gnome-settings-daemon] housekeeping: Add test application
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: Add test application
- Date: Mon, 3 Dec 2012 10:04:22 +0000 (UTC)
commit 19a073a69097a35e4e4416e6b762694c89d45df1
Author: Bastien Nocera <hadess hadess net>
Date: Mon Dec 3 10:56:02 2012 +0100
housekeeping: Add test application
plugins/housekeeping/Makefile.am | 28 ++++++++++++++++++++++++++++
plugins/housekeeping/test-housekeeping.c | 7 +++++++
2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/plugins/housekeeping/Makefile.am b/plugins/housekeeping/Makefile.am
index 7fa500b..22fe5bc 100644
--- a/plugins/housekeeping/Makefile.am
+++ b/plugins/housekeeping/Makefile.am
@@ -30,6 +30,34 @@ gsd_empty_trash_test_CFLAGS = \
$(LIBNOTIFY_CFLAGS) \
$(AM_CFLAGS)
+libexec_PROGRAMS = gsd-test-housekeeping
+
+gsd_test_housekeeping_SOURCES = \
+ test-housekeeping.c \
+ gsd-housekeeping-manager.c \
+ gsd-housekeeping-manager.h \
+ $(COMMON_FILES)
+
+gsd_test_housekeeping_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_housekeeping_CFLAGS = \
+ $(PLUGIN_CFLAGS) \
+ $(SETTINGS_PLUGIN_CFLAGS) \
+ $(MOUSE_CFLAGS) \
+ $(AM_CFLAGS)
+
+gsd_test_housekeeping_LDADD = \
+ $(top_builddir)/gnome-settings-daemon/libgsd.la \
+ $(top_builddir)/plugins/common/libcommon.la \
+ $(SETTINGS_DAEMON_LIBS) \
+ $(SETTINGS_PLUGIN_LIBS)
+
plugin_LTLIBRARIES = libhousekeeping.la
libhousekeeping_la_SOURCES = \
diff --git a/plugins/housekeeping/test-housekeeping.c b/plugins/housekeeping/test-housekeeping.c
new file mode 100644
index 0000000..ee4ec2e
--- /dev/null
+++ b/plugins/housekeeping/test-housekeeping.c
@@ -0,0 +1,7 @@
+#define NEW gsd_housekeeping_manager_new
+#define START gsd_housekeeping_manager_start
+#define STOP gsd_housekeeping_manager_stop
+#define MANAGER GsdHousekeepingManager
+#include "gsd-housekeeping-manager.h"
+
+#include "test-plugin.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]