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