Added use of $(DEBUG_CFLAGS) to Makefiles.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@8
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
LDFLAGS = $(LIBSPI_LIBS) @LT_VERSION_INFO@
LDFLAGS = $(LIBSPI_LIBS) @LT_VERSION_INFO@
+DEBUG_CFLAGS=-DSPI_DEBUG
+
+CFLAGS += $(DEBUG_CFLAGS)
+
libspiincludedir = $(includedir)/libspi
libspiinclude_HEADERS = accessible.h \
libspiincludedir = $(includedir)/libspi
libspiinclude_HEADERS = accessible.h \
* listener.c: test for accessibility implementation
*
*/
* listener.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
#include <stdio.h>
#endif
#include <stdio.h>
#endif
#include <config.h>
#include <bonobo/Bonobo.h>
#include <Accessible.h>
#include <config.h>
#include <bonobo/Bonobo.h>
#include <Accessible.h>
{
/* Listener *listener = LISTENER (object); */
{
/* Listener *listener = LISTENER (object); */
- printf("listener_object_finalize called\n");
-
+#ifdef SPI_DEBUG
+ fprintf(stderr, "listener_object_finalize called\n");
+#endif
listener_parent_class->finalize (object);
}
listener_parent_class->finalize (object);
}
const Accessibility_Event *e,
CORBA_Environment *ev)
{
const Accessibility_Event *e,
CORBA_Environment *ev)
{
fprintf (stderr, "notify...\n");
fprintf (stderr, "source name: '%s'\n",
Accessibility_Accessible__get_name(e->target, ev));
fprintf (stderr, "notify...\n");
fprintf (stderr, "source name: '%s'\n",
Accessibility_Accessible__get_name(e->target, ev));
* registry.c: test for accessibility implementation
*
*/
* registry.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
#include <stdio.h>
#endif
#include <config.h>
#include <stdio.h>
#endif
#include <config.h>
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
fprintf (stderr, "registering app %p\n", application);
fprintf (stderr, "registering app %p\n", application);
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
- /* fprintf(stderr, "notifying listener #%d\n", n);*/
- /* fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));*/
+#ifdef SPI_DEBUG
+ fprintf(stderr, "notifying listener #%d\n", n);
+ fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));
+#endif
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
* Boston, MA 02111-1307, USA.
*/
* Boston, MA 02111-1307, USA.
*/
#include <libbonobo.h>
#include "registry.h"
#include <libbonobo.h>
#include "registry.h"
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
bonobo_main ();
return 0;
bonobo_main ();
return 0;
* registry.c: test for accessibility implementation
*
*/
* registry.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
#include <stdio.h>
#endif
#include <config.h>
#include <stdio.h>
#endif
#include <config.h>
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
fprintf (stderr, "registering app %p\n", application);
fprintf (stderr, "registering app %p\n", application);
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
- /* fprintf(stderr, "notifying listener #%d\n", n);*/
- /* fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));*/
+#ifdef SPI_DEBUG
+ fprintf(stderr, "notifying listener #%d\n", n);
+ fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));
+#endif
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
* Boston, MA 02111-1307, USA.
*/
* Boston, MA 02111-1307, USA.
*/
#include <libbonobo.h>
#include "registry.h"
#include <libbonobo.h>
#include "registry.h"
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
bonobo_main ();
return 0;
bonobo_main ();
return 0;
-I$(top_builddir) \
-I$(top_srcdir)/libspi \
-I$(top_builddir)/libspi \
-I$(top_builddir) \
-I$(top_srcdir)/libspi \
-I$(top_builddir)/libspi \
+ $(TESTS_CFLAGS)
+
+DEBUG_CFLAGS=-DSPI_DEBUG
+
+CFLAGS += $(TESTS_CFLAGS)
LDADD = ../libspi/libspi.la $(TESTS_LIBS)
LDADD = ../libspi/libspi.la $(TESTS_LIBS)