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