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