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