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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
|
BUILT_SOURCES = \
gabble-signals-marshal.h \
gabble-signals-marshal.c \
gabble-signals-marshal.list \
gabble-enumtypes.h \
gabble-enumtypes.c
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST =
libexec_PROGRAMS=telepathy-gabble
noinst_PROGRAMS = write-mgr-file
libgabble_convenience_la_SOURCES = \
addressing-util.h \
addressing-util.c \
auth-manager.h \
auth-manager.c \
base64.h \
base64.c \
base-call-channel.h \
base-call-channel.c \
bytestream-factory.h \
bytestream-factory.c \
bytestream-ibb.h \
bytestream-ibb.c \
bytestream-iface.h \
bytestream-iface.c \
bytestream-muc.h \
bytestream-muc.c \
bytestream-multiple.h \
bytestream-multiple.c \
bytestream-socks5.h \
bytestream-socks5.c \
call-content.h \
call-content.c \
call-channel.h \
call-channel.c \
call-muc-channel.h \
call-muc-channel.c \
call-member.h \
call-member.c \
call-member-content.h \
call-member-content.c \
call-stream.h \
call-stream.c \
capabilities.c \
caps-hash.h \
caps-hash.c \
caps-channel-manager.c \
conn-addressing.h \
conn-addressing.c \
conn-aliasing.h \
conn-aliasing.c \
conn-avatars.h \
conn-avatars.c \
conn-client-types.h \
conn-client-types.c \
conn-contact-info.h \
conn-contact-info.c \
conn-location.h \
conn-location.c \
conn-olpc.h \
conn-olpc.c \
conn-power-saving.h \
conn-power-saving.c \
conn-presence.h \
conn-presence.c \
conn-sidecars.h \
conn-sidecars.c \
conn-util.h \
conn-util.c \
conn-mail-notif.h \
conn-mail-notif.c \
connection.h \
connection.c \
connection-manager.h \
connection-manager.c \
debug.h \
debug.c \
disco.h \
disco.c \
error.c \
error.h \
gabble.c \
gabble.h \
google-relay.c \
google-relay.h \
im-channel.h \
im-channel.c \
im-factory.h \
im-factory.c \
jingle-content.h \
jingle-content.c \
jingle-factory.h \
jingle-factory.c \
jingle-info.c \
jingle-info.h \
jingle-share.h \
jingle-share.c \
jingle-media-rtp.h \
jingle-media-rtp.c \
jingle-mint.h \
jingle-mint.c \
jingle-session.h \
jingle-session.c \
jingle-tp-util.h \
jingle-tp-util.c \
jingle-transport-google.h \
jingle-transport-google.c \
jingle-transport-rawudp.h \
jingle-transport-rawudp.c \
jingle-transport-iceudp.h \
jingle-transport-iceudp.c \
jingle-transport-iface.h \
jingle-transport-iface.c \
jingle-types.h \
legacy-caps.h \
legacy-caps.c \
media-channel.h \
media-channel-internal.h \
media-channel.c \
media-channel-hold.c \
media-stream.h \
media-stream.c \
media-factory.h \
media-factory.c \
message-util.h \
message-util.c \
muc-channel.h \
muc-channel.c \
muc-factory.h \
muc-factory.c \
muc-tube-dbus.h \
muc-tube-dbus.c \
muc-tube-stream.h \
muc-tube-stream.c \
namespaces.h \
olpc-activity.h \
olpc-activity.c \
plugin-loader.h \
plugin-loader.c \
presence.h \
presence.c \
presence-cache.h \
presence-cache.c \
protocol.h \
protocol.c \
private-tubes-factory.h \
private-tubes-factory.c \
request-pipeline.h \
request-pipeline.c \
roster.h \
roster.c \
room-config.h \
room-config.c \
roomlist-channel.h \
roomlist-channel.c \
roomlist-manager.h \
roomlist-manager.c \
search-channel.h \
search-channel.c \
search-manager.h \
search-manager.c \
server-sasl-channel.h \
server-sasl-channel.c \
server-tls-channel.h \
server-tls-channel.c \
server-tls-manager.h \
server-tls-manager.c \
sidecar.c \
tls-certificate.h \
tls-certificate.c \
tube-iface.h \
tube-iface.c \
tubes-channel.h \
tubes-channel.c \
tube-dbus.h \
tube-dbus.c \
tube-stream.h \
tube-stream.c \
types.h \
util.h \
util.c \
vcard-manager.h \
vcard-manager.c
if ENABLE_FILE_TRANSFER
libgabble_convenience_la_SOURCES += \
ft-channel.c \
ft-channel.h \
ft-manager.c \
ft-manager.h \
gtalk-file-collection.h \
gtalk-file-collection.c
endif
enumtype_sources = \
$(top_srcdir)/src/connection.h \
$(top_srcdir)/src/jingle-types.h \
$(top_srcdir)/src/room-config.h \
$(top_srcdir)/src/presence.h
libgabble_convenience_la_LIBADD = \
$(top_builddir)/extensions/libgabble-extensions.la \
$(top_builddir)/lib/gibber/libgibber.la \
libgabble-plugins.la \
$(ALL_LIBS)
nodist_libgabble_convenience_la_SOURCES = \
$(BUILT_SOURCES)
write_mgr_file_SOURCES = write-mgr-file.c
write_mgr_file_LDADD = libgabble-convenience.la
telepathy_gabble_SOURCES = \
main.c
check_c_sources = \
$(telepathy_gabble_SOURCES) \
$(libgabble_convenience_la_SOURCES) \
$(write_mgr_file_SOURCES)
include $(top_srcdir)/tools/check-coding-style.mk
check-local: check-coding-style
telepathy_gabble_LDADD = libgabble-convenience.la
telepathy_gabble_LDFLAGS = -export-dynamic
noinst_LTLIBRARIES = libgabble-convenience.la
lib_LTLIBRARIES = libgabble-plugins.la
# Gabble's plugin API is not stable yet (it can't be, since neither is Wocky),
# so use -release to make the SONAME of the plugin library change with every
# Gabble release.
libgabble_plugins_la_LDFLAGS = \
-no-undefined \
-release $(VERSION) \
$(NULL)
libgabble_plugins_la_LIBADD = \
$(ALL_LIBS)
libgabble_plugins_la_SOURCES = \
capabilities.c \
caps-channel-manager.c \
debug.c \
error.c \
plugin.c \
plugin-connection.c \
sidecar.c
AM_CFLAGS = $(ERROR_CFLAGS) -I$(top_srcdir) -I$(top_builddir) \
@DBUS_CFLAGS@ @GLIB_CFLAGS@ @WOCKY_CFLAGS@ \
@TP_GLIB_CFLAGS@ \
@SOUP_CFLAGS@ @NICE_CFLAGS@ @GMODULE_CFLAGS@ \
-I $(top_srcdir)/lib -I $(top_builddir)/lib \
-DG_LOG_DOMAIN=\"gabble\" \
-DPLUGIN_DIR=\"$(libdir)/telepathy/gabble-0\"
# following flag is requied to make getnameinfo work
if WINDOWS
AM_CFLAGS += -D_WIN32_WINNT=0x0501
endif
ALL_LIBS = @DBUS_LIBS@ @GLIB_LIBS@ @WOCKY_LIBS@ @TP_GLIB_LIBS@ \
@SOUP_LIBS@ @NICE_LIBS@ @GMODULE_LIBS@
# build gibber first
all: gibber
gibber:
@${MAKE} -C $(top_builddir)/lib/gibber libgibber.la
.PHONY: gibber
gabble-signals-marshal.list: $(libgabble_convenience_la_SOURCES) Makefile.am
@( cd $(srcdir) && \
sed -n -e 's/.*gabble_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
$(libgabble_convenience_la_SOURCES) ) \
| sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
@if cmp -s $@.tmp $@; then \
rm $@.tmp; \
else \
mv $@.tmp $@; \
fi
%-signals-marshal.h: %-signals-marshal.list Makefile.am
$(AM_V_GEN)glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $@
%-signals-marshal.c: %-signals-marshal.list Makefile.am
$(AM_V_GEN){ echo '#include "$*-signals-marshal.h"' && \
glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< ; \
} > $@
# rules for making the glib enum objects
gabble-enumtypes.h: $(enumtype_sources) Makefile.in
$(AM_V_GEN)glib-mkenums \
--fhead "#ifndef __GABBLE_ENUM_TYPES_H__\n#define __GABBLE_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define GABBLE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GABBLE_ENUM_TYPES_H__ */" \
$(enumtype_sources) > $@
gabble-enumtypes.c: $(enumtype_sources) Makefile.in
$(AM_V_GEN)glib-mkenums \
--fhead "#include <$*.h>" \
--fprod "\n/* enumerations from \"@filename@\" */\n#include \"@filename@\"" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
$(enumtype_sources) > $@
Android.mk: Makefile.am $(BUILT_SOURCES)
androgenizer -:PROJECT telepathy-gabble \
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
-:SHARED gabble-plugins -:TAGS eng debug \
-:SOURCES $(libgabble_plugins_la_SOURCES) \
-:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CFLAGS) \
-:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) \
-:LDFLAGS $(libgabble_plugins_la_LDFLAGS) \
$(libgabble_plugins_la_LIBADD) \
-:SHARED telepathy-gabble -:TAGS eng debug \
-:SOURCES $(libgabble_convenience_la_SOURCES) \
$(nodist_libgabble_convenience_la_SOURCES) main.c \
-:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CFLAGS) -DBUILD_AS_ANDROID_SERVICE \
-:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) $(telepathy_gabble_LDFLAGS) \
-:LDFLAGS $(telepathy_gabble_LDADD) $(libgabble_convenience_la_LIBADD) \
$(lib_LTLIBRARIES) \
> $@
|