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