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