]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Added functions to determine if a contact has video capabilities
[empathy.git] / libempathy-gtk / Makefile.am
1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
3
4 AM_CPPFLAGS =                                           \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         $(LIBEMPATHYGTK_CFLAGS)                         \
10         $(ENCHANT_CFLAGS)                               \
11         $(LIBCHAMPLAIN_CFLAGS)                          \
12         $(GEOCLUE_CFLAGS)                               \
13         $(WEBKIT_CFLAGS)                                \
14         $(WARN_CFLAGS)                                  \
15         $(DISABLE_DEPRECATED)
16
17 BUILT_SOURCES =                                         \
18         empathy-gtk-marshal.h                           \
19         empathy-gtk-marshal.c                           \
20         empathy-gtk-marshal.list                        \
21         empathy-gtk-enum-types.h                        \
22         empathy-gtk-enum-types.c
23
24 lib_LTLIBRARIES = libempathy-gtk.la
25
26 libempathy_gtk_handwritten_source =             \
27         empathy-account-chooser.c               \
28         empathy-account-widget.c                \
29         empathy-account-widget-irc.c            \
30         empathy-account-widget-sip.c            \
31         empathy-avatar-chooser.c                \
32         empathy-avatar-image.c                  \
33         empathy-cell-renderer-activatable.c     \
34         empathy-cell-renderer-expander.c        \
35         empathy-cell-renderer-text.c            \
36         empathy-chat.c                          \
37         empathy-chat-text-view.c                \
38         empathy-chat-view.c                     \
39         empathy-conf.c                          \
40         empathy-contact-dialogs.c               \
41         empathy-contact-list-store.c            \
42         empathy-contact-list-view.c             \
43         empathy-contact-menu.c                  \
44         empathy-contact-selector.c              \
45         empathy-contact-widget.c                \
46         empathy-geometry.c                      \
47         empathy-audio-sink.c                    \
48         empathy-audio-src.c                     \
49         empathy-video-src.c                     \
50         empathy-video-widget.c                  \
51         empathy-irc-network-dialog.c            \
52         empathy-log-window.c                    \
53         empathy-new-message-dialog.c            \
54         empathy-presence-chooser.c              \
55         empathy-profile-chooser.c               \
56         empathy-smiley-manager.c                \
57         empathy-sound.c                         \
58         empathy-spell.c                         \
59         empathy-status-preset-dialog.c          \
60         empathy-theme-boxes.c                   \
61         empathy-theme-irc.c                     \
62         empathy-theme-manager.c                 \
63         empathy-ui-utils.c
64
65 libempathy_gtk_la_SOURCES =                     \
66         $(libempathy_gtk_handwritten_source)    \
67         totem-subtitle-encoding.c totem-subtitle-encoding.h
68
69 # do not distribute generated files
70 nodist_libempathy_gtk_la_SOURCES =\
71         $(BUILT_SOURCES)
72
73 libempathy_gtk_la_LIBADD =                      \
74         $(LIBEMPATHYGTK_LIBS)                   \
75         $(ENCHANT_LIBS)                         \
76         $(LIBCHAMPLAIN_LIBS)                    \
77         $(GEOCLUE_LIBS)                         \
78         $(WEBKIT_LIBS)                          \
79         $(top_builddir)/libempathy/libempathy.la
80
81 libempathy_gtk_la_LDFLAGS =                \
82        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
83        -export-symbols-regex ^empathy_
84
85 libempathy_gtk_headers =                        \
86         empathy-account-chooser.h               \
87         empathy-account-widget.h                \
88         empathy-account-widget-irc.h            \
89         empathy-account-widget-sip.h            \
90         empathy-avatar-chooser.h                \
91         empathy-avatar-image.h                  \
92         empathy-cell-renderer-activatable.h     \
93         empathy-cell-renderer-expander.h        \
94         empathy-cell-renderer-text.h            \
95         empathy-chat.h                          \
96         empathy-chat-text-view.h                \
97         empathy-chat-view.h                     \
98         empathy-conf.h                          \
99         empathy-contact-dialogs.h               \
100         empathy-contact-list-store.h            \
101         empathy-contact-list-view.h             \
102         empathy-contact-menu.h                  \
103         empathy-contact-selector.h              \
104         empathy-contact-widget.h                \
105         empathy-geometry.h                      \
106         empathy-audio-sink.h                    \
107         empathy-audio-src.h                     \
108         empathy-video-src.h                     \
109         empathy-video-widget.h                  \
110         empathy-images.h                        \
111         empathy-irc-network-dialog.h            \
112         empathy-log-window.h                    \
113         empathy-new-message-dialog.h            \
114         empathy-presence-chooser.h              \
115         empathy-profile-chooser.h               \
116         empathy-smiley-manager.h                \
117         empathy-sound.h                         \
118         empathy-spell.h                         \
119         empathy-status-preset-dialog.h          \
120         empathy-theme-boxes.h                   \
121         empathy-theme-irc.h                     \
122         empathy-theme-manager.h                 \
123         empathy-ui-utils.h
124
125 check_c_sources = \
126     $(libempathy_gtk_handwritten_source) \
127     $(libempathy_gtk_headers)
128 include $(top_srcdir)/tools/check-coding-style.mk
129 check-local: check-coding-style
130
131 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
132 libempathy_gtk_include_HEADERS =                \
133         $(libempathy_gtk_headers)               \
134         empathy-gtk-enum-types.h
135
136 uidir = $(datadir)/empathy
137 ui_DATA =                                       \
138         empathy-contact-widget.ui               \
139         empathy-contact-dialogs.ui              \
140         empathy-account-widget-generic.ui       \
141         empathy-account-widget-jabber.ui        \
142         empathy-account-widget-msn.ui           \
143         empathy-account-widget-sip.ui           \
144         empathy-account-widget-salut.ui         \
145         empathy-account-widget-irc.ui           \
146         empathy-account-widget-icq.ui           \
147         empathy-account-widget-yahoo.ui         \
148         empathy-account-widget-groupwise.ui     \
149         empathy-account-widget-aim.ui           \
150         empathy-status-preset-dialog.ui         \
151         empathy-log-window.ui                   \
152         empathy-chat.ui                         \
153         empathy-new-message-dialog.ui
154
155 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
156         $(QUIET_GEN)( cd $(srcdir) && \
157         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
158         $(libempathy_gtk_la_SOURCES) ) \
159         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
160         if cmp -s $@.tmp $@; then \
161                 rm $@.tmp; \
162         else \
163                 mv $@.tmp $@; \
164         fi
165
166 %-marshal.h: %-marshal.list Makefile
167         $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
168
169 %-marshal.c: %-marshal.list Makefile
170         $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
171         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
172
173 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
174         $(QUIET_GEN)true
175 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
176         $(QUIET_GEN)(cd $(srcdir) \
177         && glib-mkenums \
178                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
179                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
180                         --fhead "#include <glib-object.h>\n\n" \
181                         --fhead "G_BEGIN_DECLS\n\n" \
182                         --ftail "G_END_DECLS\n\n" \
183                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
184                         --fprod "#include <libempathy-gtk/@filename@>\n" \
185                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
186                         --eprod "GType @enum_name@_get_type (void);\n" \
187                 $(libempathy_gtk_headers) ) > xgen-gth \
188         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
189         && rm -f xgen-gth \
190         && echo timestamp > $(@F)
191
192 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
193         $(QUIET_GEN)(cd $(srcdir) \
194         && glib-mkenums \
195                         --fhead "#include <config.h>\n" \
196                         --fhead "#include <glib-object.h>\n" \
197                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
198                         --fprod "\n/* enumerations from \"@filename@\" */" \
199                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
200                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
201                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
202                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
203                         --vtail "  static GType type = 0;\n\n" \
204                         --vtail "  if (!type)\n" \
205                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
206                         --vtail "  return type;\n}\n\n" \
207                 $(libempathy_gtk_headers) ) > xgen-gtc \
208         && cp xgen-gtc $(@F) \
209         && rm -f xgen-gtc
210
211 pkgconfigdir = $(libdir)/pkgconfig
212 pkgconfig_DATA = libempathy-gtk.pc
213
214 EXTRA_DIST =                    \
215         $(ui_DATA)
216
217 if HAVE_GEOCLUE
218 libempathy_gtk_handwritten_source +=            \
219         empathy-location-manager.c
220
221 libempathy_gtk_headers +=                       \
222         empathy-location-manager.h
223 else
224 EXTRA_DIST +=                                   \
225         empathy-location-manager.c              \
226         empathy-location-manager.h
227 endif
228
229 if HAVE_WEBKIT
230 libempathy_gtk_handwritten_source +=            \
231         empathy-plist.c                         \
232         empathy-theme-adium.c
233 libempathy_gtk_headers +=                       \
234         empathy-plist.h                         \
235         empathy-theme-adium.h
236 else
237 EXTRA_DIST +=                                   \
238         empathy-plist.c                         \
239         empathy-plist.h                         \
240         empathy-theme-adium.c                   \
241         empathy-theme-adium.h
242 endif
243
244 CLEANFILES =                            \
245         $(BUILT_SOURCES)                \
246         stamp-empathy-gtk-enum-types.h