]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
add EmpathyAccountSelectorDialog
[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         $(WARN_CFLAGS)                                  \
19         $(DISABLE_DEPRECATED)
20
21 BUILT_SOURCES =                                         \
22         empathy-gtk-marshal.h                           \
23         empathy-gtk-marshal.c                           \
24         empathy-gtk-marshal.list                        \
25         empathy-gtk-enum-types.h                        \
26         empathy-gtk-enum-types.c
27
28 noinst_LTLIBRARIES = libempathy-gtk.la
29
30 libempathy_gtk_handwritten_source =             \
31         empathy-account-chooser.c               \
32         empathy-account-selector-dialog.c               \
33         empathy-account-widget-irc.c            \
34         empathy-account-widget-private.h        \
35         empathy-account-widget-sip.c            \
36         empathy-account-widget.c                \
37         empathy-avatar-chooser.c                \
38         empathy-avatar-image.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-contact-list-store.c            \
50         empathy-contact-list-view.c             \
51         empathy-contact-menu.c                  \
52         empathy-linking-dialog.c                \
53         empathy-live-search.c                   \
54         empathy-contact-search-dialog.c         \
55         empathy-contact-selector.c              \
56         empathy-contact-selector-dialog.c \
57         empathy-contact-widget.c                \
58         empathy-geometry.c                      \
59         empathy-groups-widget.c                 \
60         empathy-individual-dialogs.c            \
61         empathy-individual-edit-dialog.c        \
62         empathy-individual-information-dialog.c \
63         empathy-individual-linker.c             \
64         empathy-individual-menu.c               \
65         empathy-individual-store.c              \
66         empathy-individual-view.c               \
67         empathy-individual-widget.c             \
68         empathy-input-text-view.c               \
69         empathy-irc-network-chooser.c \
70         empathy-irc-network-chooser-dialog.c \
71         empathy-irc-network-dialog.c            \
72         empathy-log-window.c                    \
73         empathy-new-message-dialog.c            \
74         empathy-new-call-dialog.c               \
75         empathy-notify-manager.c                \
76         empathy-password-dialog.c               \
77         empathy-persona-store.c                 \
78         empathy-persona-view.c                  \
79         empathy-presence-chooser.c              \
80         empathy-protocol-chooser.c              \
81         empathy-search-bar.c                    \
82         empathy-share-my-desktop.c              \
83         empathy-smiley-manager.c                \
84         empathy-sound-manager.c                 \
85         empathy-spell.c                         \
86         empathy-status-preset-dialog.c          \
87         empathy-string-parser.c                 \
88         empathy-theme-boxes.c                   \
89         empathy-theme-irc.c                     \
90         empathy-theme-manager.c                 \
91         empathy-tls-dialog.c                    \
92         empathy-ui-utils.c                      \
93         empathy-plist.c                         \
94         empathy-theme-adium.c                   \
95         empathy-webkit-utils.c                  \
96         $(NULL)
97
98 libempathy_gtk_headers =                        \
99         empathy-account-chooser.h               \
100         empathy-account-selector-dialog.h               \
101         empathy-account-widget-irc.h            \
102         empathy-account-widget-sip.h            \
103         empathy-account-widget.h                \
104         empathy-avatar-chooser.h                \
105         empathy-avatar-image.h                  \
106         empathy-call-utils.h                    \
107         empathy-cell-renderer-activatable.h     \
108         empathy-cell-renderer-expander.h        \
109         empathy-cell-renderer-text.h            \
110         empathy-chat-text-view.h                \
111         empathy-chat-view.h                     \
112         empathy-chat.h                          \
113         empathy-contact-blocking-dialog.h       \
114         empathy-contact-dialogs.h               \
115         empathy-contact-chooser.h               \
116         empathy-contact-list-store.h            \
117         empathy-contact-list-view.h             \
118         empathy-contact-menu.h                  \
119         empathy-linking-dialog.h                \
120         empathy-live-search.h                   \
121         empathy-contact-search-dialog.h         \
122         empathy-contact-selector.h              \
123         empathy-contact-selector-dialog.h \
124         empathy-contact-widget.h                \
125         empathy-geometry.h                      \
126         empathy-groups-widget.h                 \
127         empathy-images.h                        \
128         empathy-individual-dialogs.h            \
129         empathy-individual-edit-dialog.h        \
130         empathy-individual-information-dialog.h \
131         empathy-individual-linker.h             \
132         empathy-individual-menu.h               \
133         empathy-individual-store.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-log-window.h                    \
141         empathy-new-message-dialog.h            \
142         empathy-new-call-dialog.h               \
143         empathy-notify-manager.h                \
144         empathy-password-dialog.h               \
145         empathy-persona-store.h                 \
146         empathy-persona-view.h                  \
147         empathy-presence-chooser.h              \
148         empathy-protocol-chooser.h              \
149         empathy-search-bar.h                    \
150         empathy-share-my-desktop.h              \
151         empathy-smiley-manager.h                \
152         empathy-sound-manager.h                 \
153         empathy-spell.h                         \
154         empathy-status-preset-dialog.h          \
155         empathy-string-parser.h                 \
156         empathy-theme-boxes.h                   \
157         empathy-theme-irc.h                     \
158         empathy-theme-manager.h                 \
159         empathy-tls-dialog.h                    \
160         empathy-ui-utils.h                      \
161         empathy-plist.h                         \
162         empathy-theme-adium.h                   \
163         empathy-webkit-utils.h                  \
164         $(NULL)
165
166
167 libempathy_gtk_la_SOURCES =                     \
168         $(libempathy_gtk_handwritten_source)    \
169         $(libempathy_gtk_headers)               \
170         totem-subtitle-encoding.c totem-subtitle-encoding.h
171
172 # do not distribute generated files
173 nodist_libempathy_gtk_la_SOURCES =\
174         $(BUILT_SOURCES)
175
176 libempathy_gtk_la_LIBADD =                      \
177         $(EMPATHY_LIBS)                 \
178         $(EMPATHY_LIBS)                 \
179         $(GTK_LIBS)                     \
180         $(LIBNOTIFY_LIBS)                       \
181         $(CANBERRA_LIBS) \
182         $(ENCHANT_LIBS)                         \
183         $(LIBCHAMPLAIN_LIBS)                    \
184         $(GEOCLUE_LIBS)                         \
185         $(GEOCODE_LIBS)                         \
186         $(GCR_LIBS)                             \
187         $(MEEGO_LIBS)                           \
188         $(CHEESE_LIBS)                          \
189         $(top_builddir)/libempathy/libempathy.la
190
191 check_c_sources = \
192     $(libempathy_gtk_handwritten_source) \
193     $(libempathy_gtk_headers)
194 include $(top_srcdir)/tools/check-coding-style.mk
195 check-local: check-coding-style
196
197 uidir = $(datadir)/empathy
198 ui_DATA =                                       \
199         empathy-contact-widget.ui               \
200         empathy-contact-dialogs.ui              \
201         empathy-contact-blocking-dialog.ui      \
202         empathy-account-widget-generic.ui       \
203         empathy-account-widget-jabber.ui        \
204         empathy-account-widget-msn.ui           \
205         empathy-account-widget-sip.ui           \
206         empathy-account-widget-local-xmpp.ui    \
207         empathy-account-widget-irc.ui           \
208         empathy-account-widget-icq.ui           \
209         empathy-account-widget-yahoo.ui         \
210         empathy-account-widget-groupwise.ui     \
211         empathy-account-widget-aim.ui           \
212         empathy-status-preset-dialog.ui         \
213         empathy-log-window.ui                   \
214         empathy-chat.ui                         \
215         empathy-contact-selector-dialog.ui      \
216         empathy-search-bar.ui                   \
217         empathy-individual-widget.ui
218
219 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
220         $(AM_V_GEN)( cd $(srcdir) && \
221         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
222         $(libempathy_gtk_la_SOURCES) ) \
223         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
224         @if cmp -s $@.tmp $@; then \
225                 rm $@.tmp; \
226         else \
227                 mv $@.tmp $@; \
228         fi
229
230 %-marshal.h: %-marshal.list Makefile
231         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
232
233 %-marshal.c: %-marshal.list Makefile
234         $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
235         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
236
237 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
238         $(AM_V_GEN)true
239 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
240         $(AM_V_GEN)(cd $(srcdir) \
241         && glib-mkenums \
242                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
243                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
244                         --fhead "#include <glib-object.h>\n\n" \
245                         --fhead "G_BEGIN_DECLS\n\n" \
246                         --ftail "G_END_DECLS\n\n" \
247                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
248                         --fprod "#include <libempathy-gtk/@filename@>\n" \
249                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
250                         --eprod "GType @enum_name@_get_type (void);\n" \
251                 $(libempathy_gtk_headers) ) > xgen-gth \
252         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
253         && rm -f xgen-gth \
254         && echo timestamp > $(@F)
255
256 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
257         $(AM_V_GEN)(cd $(srcdir) \
258         && glib-mkenums \
259                         --fhead "#include <config.h>\n" \
260                         --fhead "#include <glib-object.h>\n" \
261                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
262                         --fprod "\n/* enumerations from \"@filename@\" */" \
263                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
264                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
265                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
266                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
267                         --vtail "  static GType type = 0;\n\n" \
268                         --vtail "  if (!type)\n" \
269                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
270                         --vtail "  return type;\n}\n\n" \
271                 $(libempathy_gtk_headers) ) > xgen-gtc \
272         && cp xgen-gtc $(@F) \
273         && rm -f xgen-gtc
274
275 EXTRA_DIST =                    \
276         $(ui_DATA)
277
278 if HAVE_GEOCLUE
279 libempathy_gtk_handwritten_source +=            \
280         empathy-location-manager.c
281
282 libempathy_gtk_headers +=                       \
283         empathy-location-manager.h
284 else
285 EXTRA_DIST +=                                   \
286         empathy-location-manager.c              \
287         empathy-location-manager.h
288 endif
289
290 CLEANFILES =                            \
291         $(BUILT_SOURCES)                \
292         stamp-empathy-gtk-enum-types.h