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