1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_builddir)/dbus \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS) \
-DDBUS_COMPILATION
LDADD = $(GLIB_LIBS) \
$(top_builddir)/dbus/libdbus-glib-1.la \
$(top_builddir)/dbus/libdbus-gtool.la \
$(top_builddir)/dbus-gmain/tests/libtest.la \
$(NULL)
## note that TESTS has special meaning (stuff to use in make check)
## so if adding tests not to be run in make check, don't add them to
## TESTS
if DBUS_BUILD_TESTS
TESTS_ENVIRONMENT = \
DBUS_TOP_BUILDDIR=@abs_top_builddir@ \
DBUS_BINDING_TOOL=$(DBUS_BINDING_TOOL) \
$(NULL)
TESTS=run-test.sh
else
TESTS=
endif
VALGRIND_ENV = G_DEBUG=gc-friendly G_SLICE=always-malloc
VALGRIND = valgrind
VALGRIND_ARGS = \
--gen-suppressions=all \
--leak-check=full \
--leak-resolution=high \
--num-callers=20 \
--suppressions=$(abs_top_srcdir)/tools/dbus-glib.supp \
--suppressions=$(abs_top_srcdir)/tools/dbus-glib-tests.supp \
--verbose \
$(NULL)
check-valgrind: all
$(MAKE) check-TESTS \
DEBUG="env $(VALGRIND_ENV) $(VALGRIND) $(VALGRIND_ARGS)"
EXTRA_DIST = \
invalid-annotated-node.xml \
invalid-nested-annotation.xml \
run-test.sh \
test-goodbye.xml \
test-hello.xml \
test-song.xml \
test-dup-prop-a.xml \
test-dup-prop-b.xml \
valid-annotations.xml \
$(NULL)
if DBUS_BUILD_TESTS
## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
## build even when not doing "make check"
noinst_PROGRAMS = test-service test-client
test_service_SOURCES = \
test-interfaces.c \
test-interfaces.h \
test-dup-prop.c \
test-dup-prop.h \
test-objects.c \
test-objects.h \
test-server.c
test_client_SOURCES = \
test-client.c
BUILT_SOURCES = \
test-song-glue.h \
test-hello-glue.h \
test-goodbye-glue.h \
test-dup-prop-a-glue.h \
test-dup-prop-b-glue.h \
test-song-bindings.h \
test-hello-bindings.h \
test-goodbye-bindings.h \
test-dup-prop-a-bindings.h \
test-dup-prop-a-bindings.h \
test-dup-prop-b-bindings.h \
test-dup-prop-b-bindings.h \
valid-annotations-glue.h \
valid-annotations-bindings.h \
$(NULL)
test-song-glue.h: test-song.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_song --mode=glib-server --output=test-song-glue.h $(srcdir)/test-song.xml
test-song-bindings.h: test-song.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_song --mode=glib-client --output=test-song-bindings.h $(srcdir)/test-song.xml
test-hello-glue.h: test-hello.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_hello --mode=glib-server --output=test-hello-glue.h $(srcdir)/test-hello.xml
test-hello-bindings.h: test-hello.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_hello --mode=glib-client --output=test-hello-bindings.h $(srcdir)/test-hello.xml
test-goodbye-glue.h: test-goodbye.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_goodbye --mode=glib-server --output=test-goodbye-glue.h $(srcdir)/test-goodbye.xml
test-goodbye-bindings.h: test-goodbye.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_goodbye --mode=glib-client --output=test-goodbye-bindings.h $(srcdir)/test-goodbye.xml
test-dup-prop-a-glue.h: test-dup-prop-a.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_dup_prop_a --mode=glib-server --output=test-dup-prop-a-glue.h $(srcdir)/test-dup-prop-a.xml
test-dup-prop-a-bindings.h: test-dup-prop-a.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_dup_prop_a --mode=glib-client --output=test-dup-prop-a-bindings.h $(srcdir)/test-dup-prop-a.xml
test-dup-prop-b-glue.h: test-dup-prop-b.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_dup_prop_b --mode=glib-server --output=test-dup-prop-b-glue.h $(srcdir)/test-dup-prop-b.xml
test-dup-prop-b-bindings.h: test-dup-prop-b.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_dup_prop_b --mode=glib-client --output=test-dup-prop-b-bindings.h $(srcdir)/test-dup-prop-b.xml
valid-annotations-glue.h: valid-annotations.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_annotated --mode=glib-server --output=$@ $<
valid-annotations-bindings.h: valid-annotations.xml $(top_builddir)/dbus/dbus-binding-tool$(EXEEXT)
$(DBUS_BINDING_TOOL) --prefix=test_annotated --mode=glib-client --output=$@ $<
CLEANFILES = \
$(BUILT_SOURCES) \
run-with-tmp-session-bus.conf
else
### not building tests
endif
|