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