summaryrefslogtreecommitdiff
path: root/tests/lib/Makefile.am
blob: 183d2ff9ea00a7aa145e28ca50080d3ec14d44a9 (plain)
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
# It's necessary to distinguish between modules that link to
# libtelepathy-glib-1.la (normally a shared library, containing a copy of
# libtelepathy-glib-main-internal.la) and libtelepathy-glib-main-internal.la
# itself (a static convenience library). Under -Bsymbolic, you can't safely
# link both.
#
# You can either link to libtp-glib-tests.la and libtelepathy-glib-1.la,
# or to libtp-glib-tests-internal.la and libtelepathy-glib-main-internal.la.
# Do not mix the versions.
#
# See https://bugs.freedesktop.org/show_bug.cgi?id=39183
noinst_LTLIBRARIES = \
    libtp-glib-tests.la \
    libtp-glib-tests-internal.la \
    $(NULL)

libtp_glib_tests_la_SOURCES = \
    broken-client-types-conn.c \
    broken-client-types-conn.h \
    contacts-conn.c \
    contacts-conn.h \
    contact-list-manager.c \
    contact-list-manager.h \
    debug.h \
    dbus-tube-chan.c \
    dbus-tube-chan.h \
    echo-chan.h \
    echo-chan.c \
    echo-conn.h \
    echo-conn.c \
    echo-im-manager.h \
    echo-im-manager.c \
    file-transfer-chan.h \
    file-transfer-chan.c \
    myassert.h \
    my-conn-proxy.h \
    my-conn-proxy.c \
    room-list-chan.h \
    room-list-chan.c \
    simple-account.c \
    simple-account.h \
    simple-account-manager.c\
    simple-account-manager.h\
    simple-channel-manager.c \
    simple-channel-manager.h \
    simple-channel-dispatch-operation.c \
    simple-channel-dispatch-operation.h \
    simple-channel-dispatcher.c \
    simple-channel-dispatcher.h \
    simple-channel-request.c \
    simple-channel-request.h \
    simple-client.c \
    simple-client.h \
    simple-conn.c \
    simple-conn.h \
    stream-tube-chan.c \
    stream-tube-chan.h \
    stub-object.c \
    stub-object.h \
    textchan-group.c \
    textchan-group.h \
    tls-certificate.h \
    tls-certificate.c \
    util.c \
    util.h
libtp_glib_tests_internal_la_SOURCES = $(libtp_glib_tests_la_SOURCES)

check_c_sources = *.c
include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style

AM_CPPFLAGS = \
    -DTP_DISABLE_SINGLE_INCLUDE \
    $(NULL)

AM_CFLAGS = \
    $(ERROR_CFLAGS) \
    $(DBUS_CFLAGS) \
    $(GLIB_CFLAGS) \
    $(TP_GLIB_CFLAGS)
AM_LDFLAGS = \
    $(ERROR_LDFLAGS) \
    $(NULL)

libtp_glib_tests_internal_la_CPPFLAGS = \
    $(AM_CPPFLAGS) \
    -DTP_GLIB_TESTS_INTERNAL \
    $(NULL)

libtp_glib_tests_internal_la_LIBADD = \
    $(DBUS_LIBS) \
    $(GLIB_LIBS) \
    $(top_builddir)/telepathy-glib/libtelepathy-glib-main-internal.la \
    $(top_builddir)/telepathy-glib/libtelepathy-glib-1-dbus.la \
    $(NULL)

libtp_glib_tests_la_LIBADD = \
    $(DBUS_LIBS) \
    $(GLIB_LIBS) \
    $(top_builddir)/telepathy-glib/libtelepathy-glib-1.la \
    $(top_builddir)/telepathy-glib/libtelepathy-glib-1-dbus.la \
    $(NULL)

if ENABLE_LOGGER

noinst_LTLIBRARIES += libtp-logger-tests.la

libtp_logger_tests_la_SOURCES = \
    logger-test-helper.c \
    logger-test-helper.h

libtp_logger_tests_la_LIBADD = \
    libtp-glib-tests.la \
    $(NULL)

endif