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