add empathy-local-xmpp-assistant-widget
[empathy.git] / libempathy-gtk / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         -DGCR_API_SUBJECT_TO_CHANGE                     \
10         $(EMPATHY_CFLAGS)                               \
11         $(YELL_CFLAGS)                                  \
12         $(ENCHANT_CFLAGS)                               \
13         $(LIBCHAMPLAIN_CFLAGS)                          \
14         $(GEOCLUE_CFLAGS)                               \
15         $(GEOCODE_CFLAGS)                               \
16         $(MEEGO_CFLAGS)                                 \
17         $(CHEESE_CFLAGS)                                \
18         $(EDS_CFLAGS)                                   \
19         $(WARN_CFLAGS)                                  \
20         $(DISABLE_DEPRECATED)
21
22 BUILT_SOURCES =                                         \
23         empathy-gtk-enum-types.h                        \
24         empathy-gtk-enum-types.c
25
26 noinst_LTLIBRARIES = libempathy-gtk.la
27
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-call-utils.c                    \
40         empathy-cell-renderer-activatable.c     \
41         empathy-cell-renderer-expander.c        \
42         empathy-cell-renderer-text.c            \
43         empathy-chat-text-view.c                \
44         empathy-chat-view.c                     \
45         empathy-chat.c                          \
46         empathy-contact-blocking-dialog.c       \
47         empathy-contact-dialogs.c               \
48         empathy-contact-chooser.c               \
49         empathy-contactinfo-utils.c             \
50         empathy-live-search.c                   \
51         empathy-contact-search-dialog.c         \
52         empathy-contact-widget.c                \
53         empathy-dialpad-widget.c                \
54         empathy-geometry.c                      \
55         empathy-groups-widget.c                 \
56         empathy-individual-dialogs.c            \
57         empathy-individual-edit-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-search-bar.c                    \
78         empathy-share-my-desktop.c              \
79         empathy-smiley-manager.c                \
80         empathy-sound-manager.c                 \
81         empathy-spell.c                         \
82         empathy-status-preset-dialog.c          \
83         empathy-string-parser.c                 \
84         empathy-theme-boxes.c                   \
85         empathy-theme-irc.c                     \
86         empathy-theme-manager.c                 \
87         empathy-tls-dialog.c                    \
88         empathy-ui-utils.c                      \
89         empathy-plist.c                         \
90         empathy-theme-adium.c                   \
91         empathy-webkit-utils.c                  \
92         $(NULL)
93
94 libempathy_gtk_headers =                        \
95         empathy-account-chooser.h               \
96         empathy-account-selector-dialog.h               \
97         empathy-account-widget-irc.h            \
98         empathy-account-widget-sip.h            \
99         empathy-account-widget.h                \
100         empathy-avatar-chooser.h                \
101         empathy-avatar-image.h                  \
102         empathy-bad-password-dialog.h           \
103         empathy-base-password-dialog.h          \
104         empathy-call-utils.h                    \
105         empathy-cell-renderer-activatable.h     \
106         empathy-cell-renderer-expander.h        \
107         empathy-cell-renderer-text.h            \
108         empathy-chat-text-view.h                \
109         empathy-chat-view.h                     \
110         empathy-chat.h                          \
111         empathy-contact-blocking-dialog.h       \
112         empathy-contact-dialogs.h               \
113         empathy-contact-chooser.h               \
114         empathy-live-search.h                   \
115         empathy-contact-search-dialog.h         \
116         empathy-contact-widget.h                \
117         empathy-contactinfo-utils.h             \
118         empathy-dialpad-widget.h                \
119         empathy-geometry.h                      \
120         empathy-groups-widget.h                 \
121         empathy-images.h                        \
122         empathy-individual-dialogs.h            \
123         empathy-individual-edit-dialog.h        \
124         empathy-individual-menu.h               \
125         empathy-individual-store.h              \
126         empathy-individual-store-channel.h              \
127         empathy-individual-store-manager.h              \
128         empathy-individual-view.h               \
129         empathy-individual-widget.h             \
130         empathy-input-text-view.h               \
131         empathy-irc-network-chooser.h \
132         empathy-irc-network-chooser-dialog.h \
133         empathy-irc-network-dialog.h            \
134         empathy-local-xmpp-assistant-widget.h \
135         empathy-log-window.h                    \
136         empathy-new-account-dialog.h            \
137         empathy-new-message-dialog.h            \
138         empathy-new-call-dialog.h               \
139         empathy-notify-manager.h                \
140         empathy-password-dialog.h               \
141         empathy-presence-chooser.h              \
142         empathy-protocol-chooser.h              \
143         empathy-search-bar.h                    \
144         empathy-share-my-desktop.h              \
145         empathy-smiley-manager.h                \
146         empathy-sound-manager.h                 \
147         empathy-spell.h                         \
148         empathy-status-preset-dialog.h          \
149         empathy-string-parser.h                 \
150         empathy-theme-boxes.h                   \
151         empathy-theme-irc.h                     \
152         empathy-theme-manager.h                 \
153         empathy-tls-dialog.h                    \
154         empathy-ui-utils.h                      \
155         empathy-plist.h                         \
156         empathy-theme-adium.h                   \
157         empathy-webkit-utils.h                  \
158         $(NULL)
159
160
161 libempathy_gtk_la_SOURCES =                     \
162         $(libempathy_gtk_handwritten_source)    \
163         $(libempathy_gtk_headers)               \
164         totem-subtitle-encoding.c totem-subtitle-encoding.h
165
166 # do not distribute generated files
167 nodist_libempathy_gtk_la_SOURCES =\
168         $(BUILT_SOURCES)
169
170 libempathy_gtk_la_LIBADD =                      \
171         $(EMPATHY_LIBS)                 \
172         $(EMPATHY_LIBS)                 \
173         $(GTK_LIBS)                     \
174         $(LIBNOTIFY_LIBS)                       \
175         $(CANBERRA_LIBS) \
176         $(ENCHANT_LIBS)                         \
177         $(LIBCHAMPLAIN_LIBS)                    \
178         $(GEOCLUE_LIBS)                         \
179         $(GEOCODE_LIBS)                         \
180         $(GCR_LIBS)                             \
181         $(MEEGO_LIBS)                           \
182         $(CHEESE_LIBS)                          \
183         $(EDS_LIBS)                                     \
184         $(top_builddir)/libempathy/libempathy.la
185
186 check_c_sources = \
187     $(libempathy_gtk_handwritten_source) \
188     $(libempathy_gtk_headers)
189 include $(top_srcdir)/tools/check-coding-style.mk
190 check-local: check-coding-style
191
192 uidir = $(datadir)/empathy
193 ui_DATA =                                       \
194         empathy-contact-widget.ui               \
195         empathy-contact-dialogs.ui              \
196         empathy-contact-blocking-dialog.ui      \
197         empathy-account-widget-generic.ui       \
198         empathy-account-widget-jabber.ui        \
199         empathy-account-widget-msn.ui           \
200         empathy-account-widget-sip.ui           \
201         empathy-account-widget-local-xmpp.ui    \
202         empathy-account-widget-irc.ui           \
203         empathy-account-widget-icq.ui           \
204         empathy-account-widget-yahoo.ui         \
205         empathy-account-widget-groupwise.ui     \
206         empathy-account-widget-aim.ui           \
207         empathy-status-preset-dialog.ui         \
208         empathy-log-window.ui                   \
209         empathy-chat.ui                         \
210         empathy-search-bar.ui                   \
211         empathy-individual-widget.ui
212
213 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
214         $(AM_V_GEN)true
215 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
216         $(AM_V_GEN)(cd $(srcdir) \
217         && glib-mkenums \
218                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
219                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
220                         --fhead "#include <glib-object.h>\n\n" \
221                         --fhead "G_BEGIN_DECLS\n\n" \
222                         --ftail "G_END_DECLS\n\n" \
223                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
224                         --fprod "#include <libempathy-gtk/@filename@>\n" \
225                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
226                         --eprod "GType @enum_name@_get_type (void);\n" \
227                 $(libempathy_gtk_headers) ) > xgen-gth \
228         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
229         && rm -f xgen-gth \
230         && echo timestamp > $(@F)
231
232 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
233         $(AM_V_GEN)(cd $(srcdir) \
234         && glib-mkenums \
235                         --fhead "#include <config.h>\n" \
236                         --fhead "#include <glib-object.h>\n" \
237                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
238                         --fprod "\n/* enumerations from \"@filename@\" */" \
239                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
240                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
241                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
242                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
243                         --vtail "  static GType type = 0;\n\n" \
244                         --vtail "  if (!type)\n" \
245                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
246                         --vtail "  return type;\n}\n\n" \
247                 $(libempathy_gtk_headers) ) > xgen-gtc \
248         && cp xgen-gtc $(@F) \
249         && rm -f xgen-gtc
250
251 EXTRA_DIST =                    \
252         $(ui_DATA)
253
254 if HAVE_GEOCLUE
255 libempathy_gtk_handwritten_source +=            \
256         empathy-location-manager.c
257
258 libempathy_gtk_headers +=                       \
259         empathy-location-manager.h
260 else
261 EXTRA_DIST +=                                   \
262         empathy-location-manager.c              \
263         empathy-location-manager.h
264 endif
265
266 CLEANFILES =                            \
267         $(BUILT_SOURCES)                \
268         stamp-empathy-gtk-enum-types.h