]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Merge branch 'mc5', fixes bug #590165
[empathy.git] / tests / Makefile.am
1 SUBDIRS = xml
2
3 CLEANFILES=
4
5 include $(top_srcdir)/rules/check.mak
6
7 SUPPRESSIONS=valgrind.supp dlopen.supp
8
9 EXTRA_DIST =            \
10         test.manager    \
11         test.profile
12
13 AM_CPPFLAGS =                                           \
14         -I$(top_srcdir)                                 \
15         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
16         $(EMPATHY_CFLAGS)                               \
17         $(WARN_CFLAGS)                                  \
18         $(DISABLE_DEPRECATED)
19
20 LDADD =                                                         \
21         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
22         $(top_builddir)/libempathy/libempathy.la                \
23         $(EMPATHY_LIBS)
24
25 noinst_PROGRAMS =                       \
26         contact-manager                 \
27         empetit                         \
28         test-empathy-account-assistant \
29         test-empathy-presence-chooser   \
30         test-empathy-status-preset-dialog \
31         test-empathy-protocol-chooser
32
33 contact_manager_SOURCES = contact-manager.c
34 empetit_SOURCES = empetit.c
35 test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
36 test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
37 test_empathy_protocol_chooser_SOURCES = test-empathy-protocol-chooser.c
38 test_empathy_account_assistant_SOURCES = test-empathy-account-assistant.c
39
40 test_empathy_account_assistant_CFLAGS = -I$(top_srcdir)/src
41 test_empathy_account_assistant_LDADD =                  \
42         $(top_builddir)/src/empathy-account-assistant.o \
43         $(top_builddir)/src/empathy-import-utils.o      \
44         $(top_builddir)/src/empathy-import-pidgin.o     \
45         $(top_builddir)/src/empathy-import-widget.o     \
46         $(LDADD)
47
48 check_PROGRAMS = check-main
49 TESTS = check-main
50 check_main_SOURCES =                             \
51     check-main.c                                 \
52     check-helpers.c                              \
53     check-helpers.h                              \
54     check-libempathy.h                           \
55     check-empathy-utils.c                        \
56     check-empathy-helpers.h                      \
57     check-empathy-helpers.c                      \
58     check-irc-helper.h                           \
59     check-irc-helper.c                           \
60     check-empathy-irc-server.c                   \
61     check-empathy-irc-network.c                  \
62     check-empathy-irc-network-manager.c          \
63     check-empathy-chatroom.c                     \
64     check-empathy-chatroom-manager.c
65
66 check_c_sources = \
67     $(check_main_SOURCES)
68 include $(top_srcdir)/tools/check-coding-style.mk
69 check-local: check-coding-style
70
71 check_main_LDADD = \
72     @CHECK_LIBS@ \
73     $(top_builddir)/libempathy-gtk/libempathy-gtk.la    \
74     $(top_builddir)/libempathy/libempathy.la            \
75     $(AM_LDFLAGS)
76
77 check_main_CFLAGS = \
78     @CHECK_CFLAGS@ \
79     $(AM_CFLAGS)
80
81 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
82                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
83                     MC_MANAGER_DIR=@abs_top_srcdir@/tests