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