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