]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
UOA: Do not segfault when "Done" or "Cancel" button clicked but widget is not ready yet
[empathy.git] / libempathy-gtk / Makefile.am
1 SUBDIRS = egg-list-box
2
3 include $(top_srcdir)/tools/flymake.mk
4
5 AM_CPPFLAGS =                                           \
6         $(ERROR_CFLAGS)                                 \
7         -I.                                             \
8         -I$(top_srcdir)                                 \
9         -DDATADIR=\""$(datadir)"\"                      \
10         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
11         -DGCR_API_SUBJECT_TO_CHANGE                     \
12         $(EMPATHY_CFLAGS)                               \
13         $(YELL_CFLAGS)                                  \
14         $(ENCHANT_CFLAGS)                               \
15         $(LIBCHAMPLAIN_CFLAGS)                          \
16         $(GEOCLUE_CFLAGS)                               \
17         $(GEOCODE_CFLAGS)                               \
18         $(MEEGO_CFLAGS)                                 \
19         $(CHEESE_CFLAGS)                                \
20         $(EGGLISTBOX_CFLAGS)                                    \
21         $(WARN_CFLAGS)                                  \
22         $(DISABLE_DEPRECATED)
23
24 BUILT_SOURCES =                                         \
25         empathy-gtk-enum-types.h                        \
26         empathy-gtk-enum-types.c
27
28 libempathy_gtk_handwritten_source =             \
29         empathy-account-chooser.c               \
30         empathy-account-selector-dialog.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-avatar-chooser.c                \
36         empathy-avatar-image.c                  \
37         empathy-bad-password-dialog.c           \
38         empathy-base-password-dialog.c          \
39         empathy-calendar-button.c \
40         empathy-call-utils.c                    \
41         empathy-cell-renderer-activatable.c     \
42         empathy-cell-renderer-expander.c        \
43         empathy-cell-renderer-text.c            \
44         empathy-chat.c                          \
45         empathy-contact-blocking-dialog.c       \
46         empathy-contact-chooser.c               \
47         empathy-contactinfo-utils.c             \
48         empathy-live-search.c                   \
49         empathy-contact-search-dialog.c         \
50         empathy-contact-widget.c                \
51         empathy-dialpad-widget.c                \
52         empathy-dialpad-button.c                \
53         empathy-geometry.c                      \
54         empathy-groups-widget.c                 \
55         empathy-individual-dialogs.c            \
56         empathy-individual-edit-dialog.c        \
57         empathy-individual-information-dialog.c \
58         empathy-individual-menu.c               \
59         empathy-individual-store.c              \
60         empathy-individual-store-channel.c              \
61         empathy-individual-store-manager.c              \
62         empathy-individual-view.c               \
63         empathy-individual-widget.c             \
64         empathy-input-text-view.c               \
65         empathy-irc-network-chooser.c \
66         empathy-irc-network-chooser-dialog.c \
67         empathy-irc-network-dialog.c            \
68         empathy-local-xmpp-assistant-widget.c \
69         empathy-log-window.c                    \
70         empathy-new-account-dialog.c            \
71         empathy-new-message-dialog.c            \
72         empathy-new-call-dialog.c               \
73         empathy-notify-manager.c                \
74         empathy-password-dialog.c               \
75         empathy-presence-chooser.c              \
76         empathy-protocol-chooser.c              \
77         empathy-roster-contact.c                        \
78         empathy-roster-group.c                  \
79         empathy-roster-model.c                  \
80         empathy-roster-model-aggregator.c                       \
81         empathy-roster-model-manager.c                  \
82         empathy-roster-view.c                   \
83         empathy-search-bar.c                    \
84         empathy-share-my-desktop.c              \
85         empathy-smiley-manager.c                \
86         empathy-sound-manager.c                 \
87         empathy-spell.c                         \
88         empathy-status-preset-dialog.c          \
89         empathy-string-parser.c                 \
90         empathy-subscription-dialog.c   \
91         empathy-theme-manager.c                 \
92         empathy-tls-dialog.c                    \
93         empathy-ui-utils.c                      \
94         empathy-user-info.c                     \
95         empathy-plist.c                         \
96         empathy-theme-adium.c                   \
97         empathy-webkit-utils.c                  \
98         $(NULL)
99
100 libempathy_gtk_headers =                        \
101         empathy-account-chooser.h               \
102         empathy-account-selector-dialog.h               \
103         empathy-account-widget-irc.h            \
104         empathy-account-widget-sip.h            \
105         empathy-account-widget.h                \
106         empathy-avatar-chooser.h                \
107         empathy-avatar-image.h                  \
108         empathy-bad-password-dialog.h           \
109         empathy-base-password-dialog.h          \
110         empathy-calendar-button.h \
111         empathy-call-utils.h                    \
112         empathy-cell-renderer-activatable.h     \
113         empathy-cell-renderer-expander.h        \
114         empathy-cell-renderer-text.h            \
115         empathy-chat.h                          \
116         empathy-contact-blocking-dialog.h       \
117         empathy-contact-chooser.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-dialpad-button.h                \
124         empathy-geometry.h                      \
125         empathy-groups-widget.h                 \
126         empathy-images.h                        \
127         empathy-individual-dialogs.h            \
128         empathy-individual-edit-dialog.h        \
129         empathy-individual-information-dialog.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-local-xmpp-assistant-widget.h \
141         empathy-log-window.h                    \
142         empathy-new-account-dialog.h            \
143         empathy-new-message-dialog.h            \
144         empathy-new-call-dialog.h               \
145         empathy-notify-manager.h                \
146         empathy-password-dialog.h               \
147         empathy-presence-chooser.h              \
148         empathy-protocol-chooser.h              \
149         empathy-roster-contact.h                        \
150         empathy-roster-group.h                  \
151         empathy-roster-model.h                  \
152         empathy-roster-model-aggregator.h                       \
153         empathy-roster-model-manager.h                  \
154         empathy-roster-view.h                   \
155         empathy-search-bar.h                    \
156         empathy-share-my-desktop.h              \
157         empathy-smiley-manager.h                \
158         empathy-sound-manager.h                 \
159         empathy-spell.h                         \
160         empathy-status-preset-dialog.h          \
161         empathy-string-parser.h                 \
162         empathy-subscription-dialog.h   \
163         empathy-theme-manager.h                 \
164         empathy-tls-dialog.h                    \
165         empathy-ui-utils.h                      \
166         empathy-user-info.h                     \
167         empathy-plist.h                         \
168         empathy-theme-adium.h                   \
169         empathy-webkit-utils.h                  \
170         $(NULL)
171
172 pkglib_LTLIBRARIES = libempathy-gtk.la
173
174 # libempathy-gtk's API is not stable and will never be, so use -release to make the
175 # SONAME of the plugin library change with every Empathy release.
176 libempathy_gtk_la_LDFLAGS = \
177    -no-undefined \
178    -release $(VERSION) \
179    $(NULL)
180
181 libempathy_gtk_la_SOURCES =                     \
182         $(libempathy_gtk_handwritten_source)    \
183         $(libempathy_gtk_headers)               \
184         totem-subtitle-encoding.c totem-subtitle-encoding.h
185
186 # do not distribute generated files
187 nodist_libempathy_gtk_la_SOURCES =\
188         $(BUILT_SOURCES)
189
190 libempathy_gtk_la_LIBADD =                      \
191         $(EMPATHY_LIBS)                 \
192         $(EMPATHY_LIBS)                 \
193         $(GTK_LIBS)                     \
194         $(LIBNOTIFY_LIBS)                       \
195         $(CANBERRA_LIBS) \
196         $(ENCHANT_LIBS)                         \
197         $(LIBCHAMPLAIN_LIBS)                    \
198         $(GEOCLUE_LIBS)                         \
199         $(GEOCODE_LIBS)                         \
200         $(GCR_LIBS)                             \
201         $(MEEGO_LIBS)                           \
202         $(CHEESE_LIBS)                          \
203         $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
204         $(top_builddir)/libempathy/libempathy.la
205
206 check_c_sources = \
207     $(libempathy_gtk_handwritten_source) \
208     $(libempathy_gtk_headers)
209 include $(top_srcdir)/tools/check-coding-style.mk
210 check-local: check-coding-style
211
212 uidir = $(datadir)/empathy
213 ui_DATA =                                       \
214         empathy-contact-widget.ui               \
215         empathy-contact-blocking-dialog.ui      \
216         empathy-account-widget-generic.ui       \
217         empathy-account-widget-jabber.ui        \
218         empathy-account-widget-msn.ui           \
219         empathy-account-widget-sip.ui           \
220         empathy-account-widget-local-xmpp.ui    \
221         empathy-account-widget-irc.ui           \
222         empathy-account-widget-icq.ui           \
223         empathy-account-widget-yahoo.ui         \
224         empathy-account-widget-groupwise.ui     \
225         empathy-account-widget-aim.ui           \
226         empathy-status-preset-dialog.ui         \
227         empathy-log-window.ui                   \
228         empathy-chat.ui                         \
229         empathy-search-bar.ui                   \
230         empathy-individual-widget.ui
231
232 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
233         $(AM_V_GEN)true
234 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
235         $(AM_V_GEN)(cd $(srcdir) \
236         && glib-mkenums \
237                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
238                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
239                         --fhead "#include <glib-object.h>\n\n" \
240                         --fhead "G_BEGIN_DECLS\n\n" \
241                         --ftail "G_END_DECLS\n\n" \
242                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
243                         --fprod "#include <libempathy-gtk/@filename@>\n" \
244                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
245                         --eprod "GType @enum_name@_get_type (void);\n" \
246                 $(libempathy_gtk_headers) ) > xgen-gth \
247         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
248         && rm -f xgen-gth \
249         && echo timestamp > $(@F)
250
251 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
252         $(AM_V_GEN)(cd $(srcdir) \
253         && glib-mkenums \
254                         --fhead "#include <config.h>\n" \
255                         --fhead "#include <glib-object.h>\n" \
256                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
257                         --fprod "\n/* enumerations from \"@filename@\" */" \
258                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
259                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
260                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
261                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
262                         --vtail "  static GType type = 0;\n\n" \
263                         --vtail "  if (!type)\n" \
264                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
265                         --vtail "  return type;\n}\n\n" \
266                 $(libempathy_gtk_headers) ) > xgen-gtc \
267         && cp xgen-gtc $(@F) \
268         && rm -f xgen-gtc
269
270 EXTRA_DIST =                    \
271         $(ui_DATA)
272
273 if HAVE_GEOCLUE
274 libempathy_gtk_handwritten_source +=            \
275         empathy-location-manager.c
276
277 libempathy_gtk_headers +=                       \
278         empathy-location-manager.h
279 else
280 EXTRA_DIST +=                                   \
281         empathy-location-manager.c              \
282         empathy-location-manager.h
283 endif
284
285 CLEANFILES =                            \
286         $(BUILT_SOURCES)                \
287         stamp-empathy-gtk-enum-types.h