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