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