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