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



commit 32b8dd042197d4c6c28844dc45d7cb57c85652b9
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Sep 25 21:43:41 2016 +0200

    clipboard: Add test application
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741688

 plugins/clipboard/Makefile.am      |   16 ++++++++++++++++
 plugins/clipboard/test-clipboard.c |    7 +++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/plugins/clipboard/Makefile.am b/plugins/clipboard/Makefile.am
index 6fccd8d..2dc2bcc 100644
--- a/plugins/clipboard/Makefile.am
+++ b/plugins/clipboard/Makefile.am
@@ -20,6 +20,7 @@ libclipboard_la_CPPFLAGS = \
        $(PLUGIN_CFLAGS)                \
        -I$(top_srcdir)/gnome-settings-daemon           \
        -I$(top_builddir)/gnome-settings-daemon         \
+       -I$(top_srcdir)/plugins/common                  \
        -DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
        $(AM_CPPFLAGS)
 
@@ -35,6 +36,21 @@ libclipboard_la_LIBADD  =    \
        $(SETTINGS_PLUGIN_LIBS) \
        $(NULL)
 
+libexec_PROGRAMS = gsd-test-clipboard
+gsd_test_clipboard_SOURCES =   \
+       test-clipboard.c        \
+       gsd-clipboard-manager.h \
+       gsd-clipboard-manager.c \
+       xutils.h                \
+       xutils.c                \
+       list.h                  \
+       list.c                  \
+       $(NULL)
+
+gsd_test_clipboard_CFLAGS = $(libclipboard_la_CFLAGS)
+gsd_test_clipboard_CPPFLAGS = $(libclipboard_la_CPPFLAGS)
+gsd_test_clipboard_LDADD = $(libclipboard_la_LIBADD) $(top_builddir)/gnome-settings-daemon/libgsd.la
+
 plugin_in_files =              \
        clipboard.gnome-settings-plugin.in      \
        $(NULL)
diff --git a/plugins/clipboard/test-clipboard.c b/plugins/clipboard/test-clipboard.c
new file mode 100644
index 0000000..2761758
--- /dev/null
+++ b/plugins/clipboard/test-clipboard.c
@@ -0,0 +1,7 @@
+#define NEW gsd_clipboard_manager_new
+#define START gsd_clipboard_manager_start
+#define STOP gsd_clipboard_manager_stop
+#define MANAGER GsdClipboardManager
+#include "gsd-clipboard-manager.h"
+
+#include "test-plugin.h"


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