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