]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
tp-account-widgets: Move account widgets code in the tp-account-widgets subdir
[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-contactinfo-utils.c             \
45         empathy-live-search.c                   \
46         empathy-contact-search-dialog.c         \
47         empathy-contact-widget.c                \
48         empathy-dialpad-widget.c                \
49         empathy-dialpad-button.c                \
50         empathy-geometry.c                      \
51         empathy-groups-widget.c                 \
52         empathy-individual-dialogs.c            \
53         empathy-individual-edit-dialog.c        \
54         empathy-individual-information-dialog.c \
55         empathy-individual-menu.c               \
56         empathy-individual-store.c              \
57         empathy-individual-store-channel.c              \
58         empathy-individual-store-manager.c              \
59         empathy-individual-view.c               \
60         empathy-individual-widget.c             \
61         empathy-input-text-view.c               \
62         empathy-local-xmpp-assistant-widget.c \
63         empathy-log-window.c                    \
64         empathy-new-account-dialog.c            \
65         empathy-new-message-dialog.c            \
66         empathy-new-call-dialog.c               \
67         empathy-notify-manager.c                \
68         empathy-password-dialog.c               \
69         empathy-presence-chooser.c              \
70         empathy-protocol-chooser.c              \
71         empathy-roster-contact.c                        \
72         empathy-roster-group.c                  \
73         empathy-roster-model.c                  \
74         empathy-roster-model-aggregator.c                       \
75         empathy-roster-model-manager.c                  \
76         empathy-roster-view.c                   \
77         empathy-search-bar.c                    \
78         empathy-share-my-desktop.c              \
79         empathy-smiley-manager.c                \
80         empathy-sound-manager.c                 \
81         empathy-spell.c                         \
82         empathy-status-preset-dialog.c          \
83         empathy-string-parser.c                 \
84         empathy-subscription-dialog.c   \
85         empathy-theme-manager.c                 \
86         empathy-tls-dialog.c                    \
87         empathy-ui-utils.c                      \
88         empathy-user-info.c                     \
89         empathy-plist.c                         \
90         empathy-theme-adium.c                   \
91         empathy-webkit-utils.c                  \
92         $(NULL)
93
94 libempathy_gtk_headers =                        \
95         empathy-account-chooser.h               \
96         empathy-account-selector-dialog.h               \
97         empathy-avatar-chooser.h                \
98         empathy-avatar-image.h                  \
99         empathy-bad-password-dialog.h           \
100         empathy-base-password-dialog.h          \
101         empathy-calendar-button.h \
102         empathy-call-utils.h                    \
103         empathy-cell-renderer-activatable.h     \
104         empathy-cell-renderer-expander.h        \
105         empathy-cell-renderer-text.h            \
106         empathy-chat.h                          \
107         empathy-contact-blocking-dialog.h       \
108         empathy-contact-chooser.h               \
109         empathy-live-search.h                   \
110         empathy-contact-search-dialog.h         \
111         empathy-contact-widget.h                \
112         empathy-contactinfo-utils.h             \
113         empathy-dialpad-widget.h                \
114         empathy-dialpad-button.h                \
115         empathy-geometry.h                      \
116         empathy-groups-widget.h                 \
117         empathy-images.h                        \
118         empathy-individual-dialogs.h            \
119         empathy-individual-edit-dialog.h        \
120         empathy-individual-information-dialog.h \
121         empathy-individual-menu.h               \
122         empathy-individual-store.h              \
123         empathy-individual-store-channel.h              \
124         empathy-individual-store-manager.h              \
125         empathy-individual-view.h               \
126         empathy-individual-widget.h             \
127         empathy-input-text-view.h               \
128         empathy-local-xmpp-assistant-widget.h \
129         empathy-log-window.h                    \
130         empathy-new-account-dialog.h            \
131         empathy-new-message-dialog.h            \
132         empathy-new-call-dialog.h               \
133         empathy-notify-manager.h                \
134         empathy-password-dialog.h               \
135         empathy-presence-chooser.h              \
136         empathy-protocol-chooser.h              \
137         empathy-roster-contact.h                        \
138         empathy-roster-group.h                  \
139         empathy-roster-model.h                  \
140         empathy-roster-model-aggregator.h                       \
141         empathy-roster-model-manager.h                  \
142         empathy-roster-view.h                   \
143         empathy-search-bar.h                    \
144         empathy-share-my-desktop.h              \
145         empathy-smiley-manager.h                \
146         empathy-sound-manager.h                 \
147         empathy-spell.h                         \
148         empathy-status-preset-dialog.h          \
149         empathy-string-parser.h                 \
150         empathy-subscription-dialog.h   \
151         empathy-theme-manager.h                 \
152         empathy-tls-dialog.h                    \
153         empathy-ui-utils.h                      \
154         empathy-user-info.h                     \
155         empathy-plist.h                         \
156         empathy-theme-adium.h                   \
157         empathy-webkit-utils.h                  \
158         $(NULL)
159
160 pkglib_LTLIBRARIES = libempathy-gtk.la
161
162 # libempathy-gtk's API is not stable and will never be, so use -release to make the
163 # SONAME of the plugin library change with every Empathy release.
164 libempathy_gtk_la_LDFLAGS = \
165    -no-undefined \
166    -release $(VERSION) \
167    $(NULL)
168
169 libempathy_gtk_la_SOURCES =                     \
170         $(libempathy_gtk_handwritten_source)    \
171         $(libempathy_gtk_headers)               \
172         $(NULL)
173
174 # do not distribute generated files
175 nodist_libempathy_gtk_la_SOURCES =\
176         $(BUILT_SOURCES)
177
178 libempathy_gtk_la_LIBADD =                      \
179         $(EMPATHY_LIBS)                 \
180         $(EMPATHY_LIBS)                 \
181         $(GTK_LIBS)                     \
182         $(LIBNOTIFY_LIBS)                       \
183         $(CANBERRA_LIBS) \
184         $(ENCHANT_LIBS)                         \
185         $(LIBCHAMPLAIN_LIBS)                    \
186         $(GEOCLUE_LIBS)                         \
187         $(GEOCODE_LIBS)                         \
188         $(GCR_LIBS)                             \
189         $(MEEGO_LIBS)                           \
190         $(CHEESE_LIBS)                          \
191         $(top_builddir)/tp-account-widgets/libtp-account-widgets.la \
192         $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
193         $(top_builddir)/libempathy/libempathy.la
194
195 check_c_sources = \
196     $(libempathy_gtk_handwritten_source) \
197     $(libempathy_gtk_headers)
198 include $(top_srcdir)/tools/check-coding-style.mk
199 check-local: check-coding-style
200
201 account_widgets_ui_files =                      \
202         empathy-account-widget-generic.ui       \
203         empathy-account-widget-jabber.ui        \
204         empathy-account-widget-msn.ui           \
205         empathy-account-widget-sip.ui           \
206         empathy-account-widget-local-xmpp.ui    \
207         empathy-account-widget-irc.ui           \
208         empathy-account-widget-icq.ui           \
209         empathy-account-widget-yahoo.ui         \
210         empathy-account-widget-groupwise.ui     \
211         empathy-account-widget-aim.ui           \
212         $(NULL)
213
214 uidir = $(datadir)/empathy
215 ui_DATA =                                       \
216         empathy-contact-widget.ui               \
217         empathy-contact-blocking-dialog.ui      \
218         empathy-status-preset-dialog.ui         \
219         empathy-log-window.ui                   \
220         empathy-chat.ui                         \
221         empathy-search-bar.ui                   \
222         empathy-individual-widget.ui
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 "@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 CLEANFILES =                            \
278         $(BUILT_SOURCES)                \
279         stamp-empathy-gtk-enum-types.h