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