3 include $(top_srcdir)/tools/flymake.mk
9 -DDATADIR=\""$(datadir)"\" \
10 -DPKGDATADIR=\""$(pkgdatadir)"\" \
11 -DGCR_API_SUBJECT_TO_CHANGE \
15 $(LIBCHAMPLAIN_CFLAGS) \
20 $(EGGLISTBOX_CFLAGS) \
25 empathy-gtk-enum-types.h \
26 empathy-gtk-enum-types.c
28 libempathy_gtk_handwritten_source = \
29 empathy-account-chooser.c \
30 empathy-account-selector-dialog.c \
31 empathy-account-widget-irc.c \
32 empathy-account-widget-private.h \
33 empathy-account-widget-sip.c \
34 empathy-account-widget.c \
35 empathy-avatar-chooser.c \
36 empathy-avatar-image.c \
37 empathy-bad-password-dialog.c \
38 empathy-base-password-dialog.c \
39 empathy-calendar-button.c \
40 empathy-call-utils.c \
41 empathy-cell-renderer-activatable.c \
42 empathy-cell-renderer-expander.c \
43 empathy-cell-renderer-text.c \
45 empathy-contact-blocking-dialog.c \
46 empathy-contact-chooser.c \
47 empathy-contactinfo-utils.c \
48 empathy-live-search.c \
49 empathy-contact-search-dialog.c \
50 empathy-contact-widget.c \
51 empathy-dialpad-widget.c \
52 empathy-dialpad-button.c \
54 empathy-groups-widget.c \
55 empathy-individual-dialogs.c \
56 empathy-individual-edit-dialog.c \
57 empathy-individual-information-dialog.c \
58 empathy-individual-menu.c \
59 empathy-individual-store.c \
60 empathy-individual-store-channel.c \
61 empathy-individual-store-manager.c \
62 empathy-individual-view.c \
63 empathy-individual-widget.c \
64 empathy-input-text-view.c \
65 empathy-irc-network-chooser.c \
66 empathy-irc-network-chooser-dialog.c \
67 empathy-irc-network-dialog.c \
68 empathy-local-xmpp-assistant-widget.c \
69 empathy-log-window.c \
70 empathy-new-account-dialog.c \
71 empathy-new-message-dialog.c \
72 empathy-new-call-dialog.c \
73 empathy-notify-manager.c \
74 empathy-password-dialog.c \
75 empathy-presence-chooser.c \
76 empathy-protocol-chooser.c \
77 empathy-roster-contact.c \
78 empathy-roster-group.c \
79 empathy-roster-model.c \
80 empathy-roster-model-aggregator.c \
81 empathy-roster-model-manager.c \
82 empathy-roster-view.c \
83 empathy-search-bar.c \
84 empathy-share-my-desktop.c \
85 empathy-smiley-manager.c \
86 empathy-sound-manager.c \
88 empathy-status-preset-dialog.c \
89 empathy-string-parser.c \
90 empathy-subscription-dialog.c \
91 empathy-theme-manager.c \
92 empathy-tls-dialog.c \
96 empathy-theme-adium.c \
97 empathy-webkit-utils.c \
100 libempathy_gtk_headers = \
101 empathy-account-chooser.h \
102 empathy-account-selector-dialog.h \
103 empathy-account-widget-irc.h \
104 empathy-account-widget-sip.h \
105 empathy-account-widget.h \
106 empathy-avatar-chooser.h \
107 empathy-avatar-image.h \
108 empathy-bad-password-dialog.h \
109 empathy-base-password-dialog.h \
110 empathy-calendar-button.h \
111 empathy-call-utils.h \
112 empathy-cell-renderer-activatable.h \
113 empathy-cell-renderer-expander.h \
114 empathy-cell-renderer-text.h \
116 empathy-contact-blocking-dialog.h \
117 empathy-contact-chooser.h \
118 empathy-live-search.h \
119 empathy-contact-search-dialog.h \
120 empathy-contact-widget.h \
121 empathy-contactinfo-utils.h \
122 empathy-dialpad-widget.h \
123 empathy-dialpad-button.h \
125 empathy-groups-widget.h \
127 empathy-individual-dialogs.h \
128 empathy-individual-edit-dialog.h \
129 empathy-individual-information-dialog.h \
130 empathy-individual-menu.h \
131 empathy-individual-store.h \
132 empathy-individual-store-channel.h \
133 empathy-individual-store-manager.h \
134 empathy-individual-view.h \
135 empathy-individual-widget.h \
136 empathy-input-text-view.h \
137 empathy-irc-network-chooser.h \
138 empathy-irc-network-chooser-dialog.h \
139 empathy-irc-network-dialog.h \
140 empathy-local-xmpp-assistant-widget.h \
141 empathy-log-window.h \
142 empathy-new-account-dialog.h \
143 empathy-new-message-dialog.h \
144 empathy-new-call-dialog.h \
145 empathy-notify-manager.h \
146 empathy-password-dialog.h \
147 empathy-presence-chooser.h \
148 empathy-protocol-chooser.h \
149 empathy-roster-contact.h \
150 empathy-roster-group.h \
151 empathy-roster-model.h \
152 empathy-roster-model-aggregator.h \
153 empathy-roster-model-manager.h \
154 empathy-roster-view.h \
155 empathy-search-bar.h \
156 empathy-share-my-desktop.h \
157 empathy-smiley-manager.h \
158 empathy-sound-manager.h \
160 empathy-status-preset-dialog.h \
161 empathy-string-parser.h \
162 empathy-subscription-dialog.h \
163 empathy-theme-manager.h \
164 empathy-tls-dialog.h \
166 empathy-user-info.h \
168 empathy-theme-adium.h \
169 empathy-webkit-utils.h \
172 pkglib_LTLIBRARIES = libempathy-gtk.la
174 # libempathy-gtk's API is not stable and will never be, so use -release to make the
175 # SONAME of the plugin library change with every Empathy release.
176 libempathy_gtk_la_LDFLAGS = \
178 -release $(VERSION) \
181 libempathy_gtk_la_SOURCES = \
182 $(libempathy_gtk_handwritten_source) \
183 $(libempathy_gtk_headers) \
184 totem-subtitle-encoding.c totem-subtitle-encoding.h
186 # do not distribute generated files
187 nodist_libempathy_gtk_la_SOURCES =\
190 libempathy_gtk_la_LIBADD = \
197 $(LIBCHAMPLAIN_LIBS) \
203 $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
204 $(top_builddir)/libempathy/libempathy.la
207 $(libempathy_gtk_handwritten_source) \
208 $(libempathy_gtk_headers)
209 include $(top_srcdir)/tools/check-coding-style.mk
210 check-local: check-coding-style
212 uidir = $(datadir)/empathy
214 empathy-contact-widget.ui \
215 empathy-contact-blocking-dialog.ui \
216 empathy-account-widget-generic.ui \
217 empathy-account-widget-jabber.ui \
218 empathy-account-widget-msn.ui \
219 empathy-account-widget-sip.ui \
220 empathy-account-widget-local-xmpp.ui \
221 empathy-account-widget-irc.ui \
222 empathy-account-widget-icq.ui \
223 empathy-account-widget-yahoo.ui \
224 empathy-account-widget-groupwise.ui \
225 empathy-account-widget-aim.ui \
226 empathy-status-preset-dialog.ui \
227 empathy-log-window.ui \
229 empathy-search-bar.ui \
230 empathy-individual-widget.ui
232 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
234 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
235 $(AM_V_GEN)(cd $(srcdir) \
237 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
238 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
239 --fhead "#include <glib-object.h>\n\n" \
240 --fhead "G_BEGIN_DECLS\n\n" \
241 --ftail "G_END_DECLS\n\n" \
242 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
243 --fprod "#include <libempathy-gtk/@filename@>\n" \
244 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
245 --eprod "GType @enum_name@_get_type (void);\n" \
246 $(libempathy_gtk_headers) ) > xgen-gth \
247 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
249 && echo timestamp > $(@F)
251 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
252 $(AM_V_GEN)(cd $(srcdir) \
254 --fhead "#include <config.h>\n" \
255 --fhead "#include <glib-object.h>\n" \
256 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
257 --fprod "\n/* enumerations from \"@filename@\" */" \
258 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
259 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
260 --vtail " { 0, NULL, NULL }\n};\n\n" \
261 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
262 --vtail " static GType type = 0;\n\n" \
263 --vtail " if (!type)\n" \
264 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
265 --vtail " return type;\n}\n\n" \
266 $(libempathy_gtk_headers) ) > xgen-gtc \
267 && cp xgen-gtc $(@F) \
274 libempathy_gtk_handwritten_source += \
275 empathy-location-manager.c
277 libempathy_gtk_headers += \
278 empathy-location-manager.h
281 empathy-location-manager.c \
282 empathy-location-manager.h
287 stamp-empathy-gtk-enum-types.h