[gnome-settings-daemon] xrandr: Add XRandR test application



commit 1d7af3222516fae8987c49e2dfa8a5f0873311e8
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 21 22:08:03 2012 +0100

    xrandr: Add XRandR test application

 plugins/xrandr/Makefile.am   |   28 ++++++++++++++++++++++++++++
 plugins/xrandr/test-xrandr.c |    7 +++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/Makefile.am b/plugins/xrandr/Makefile.am
index 223fac4..15f5c9e 100644
--- a/plugins/xrandr/Makefile.am
+++ b/plugins/xrandr/Makefile.am
@@ -30,6 +30,34 @@ uninstall-local:
 	rm -f $(DESTDIR)$(icondir)/32x32/$(context)/gsd-xrandr.png
 	rm -f $(DESTDIR)$(icondir)/scalable/$(context)/gsd-xrandr.svg
 
+libexec_PROGRAMS = gsd-test-xrandr
+
+gsd_test_xrandr_SOURCES =		\
+	test-xrandr.c			\
+	gsd-xrandr-manager.c		\
+	gsd-xrandr-manager.h
+
+gsd_test_xrandr_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_xrandr_CFLAGS =			\
+	$(PLUGIN_CFLAGS)		\
+	$(SETTINGS_PLUGIN_CFLAGS)	\
+	$(XRANDR_CFLAGS)		\
+	$(AM_CFLAGS)
+
+gsd_test_xrandr_LDADD =						\
+	$(top_builddir)/gnome-settings-daemon/libgsd.la		\
+	$(top_builddir)/plugins/common/libcommon.la		\
+	$(SETTINGS_DAEMON_LIBS)			\
+	$(SETTINGS_PLUGIN_LIBS)			\
+	$(XRANDR_LIBS)
+
 plugin_LTLIBRARIES = \
 	libxrandr.la
 
diff --git a/plugins/xrandr/test-xrandr.c b/plugins/xrandr/test-xrandr.c
new file mode 100644
index 0000000..96541a3
--- /dev/null
+++ b/plugins/xrandr/test-xrandr.c
@@ -0,0 +1,7 @@
+#define NEW gsd_xrandr_manager_new
+#define START gsd_xrandr_manager_start
+#define STOP gsd_xrandr_manager_stop
+#define MANAGER GsdXrandrManager
+#include "gsd-xrandr-manager.h"
+
+#include "test-plugin.h"



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