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