]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
f059022aba390e236c86d021827328773e200180
[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 noinst_LTLIBRARIES = libempathy-gtk.la
29
30 libempathy_gtk_handwritten_source =             \
31         empathy-account-chooser.c               \
32         empathy-account-selector-dialog.c               \
33         empathy-account-widget-irc.c            \
34         empathy-account-widget-private.h        \
35         empathy-account-widget-sip.c            \
36         empathy-account-widget.c                \
37         empathy-avatar-chooser.c                \
38         empathy-avatar-image.c                  \
39         empathy-bad-password-dialog.c           \
40         empathy-base-password-dialog.c          \
41         empathy-calendar-button.c \
42         empathy-call-utils.c                    \
43         empathy-cell-renderer-activatable.c     \
44         empathy-cell-renderer-expander.c        \
45         empathy-cell-renderer-text.c            \
46         empathy-chat.c                          \
47         empathy-contact-blocking-dialog.c       \
48         empathy-contact-dialogs.c               \
49         empathy-contact-chooser.c               \
50         empathy-contactinfo-utils.c             \
51         empathy-live-search.c                   \
52         empathy-contact-search-dialog.c         \
53         empathy-contact-widget.c                \
54         empathy-dialpad-widget.c                \
55         empathy-dialpad-button.c                \
56         empathy-geometry.c                      \
57         empathy-groups-widget.c                 \
58         empathy-individual-dialogs.c            \
59         empathy-individual-edit-dialog.c        \
60         empathy-individual-information-dialog.c \
61         empathy-individual-menu.c               \
62         empathy-individual-store.c              \
63         empathy-individual-store-channel.c              \
64         empathy-individual-store-manager.c              \
65         empathy-individual-view.c               \
66         empathy-individual-widget.c             \
67         empathy-input-text-view.c               \
68         empathy-irc-network-chooser.c \
69         empathy-irc-network-chooser-dialog.c \
70         empathy-irc-network-dialog.c            \
71         empathy-local-xmpp-assistant-widget.c \
72         empathy-log-window.c                    \
73         empathy-new-account-dialog.c            \
74         empathy-new-message-dialog.c            \
75         empathy-new-call-dialog.c               \
76         empathy-notify-manager.c                \
77         empathy-password-dialog.c               \
78         empathy-presence-chooser.c              \
79         empathy-protocol-chooser.c              \
80         empathy-roster-contact.c                        \
81         empathy-roster-group.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-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-dialogs.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-view.h                   \
152         empathy-search-bar.h                    \
153         empathy-share-my-desktop.h              \
154         empathy-smiley-manager.h                \
155         empathy-sound-manager.h                 \
156         empathy-spell.h                         \
157         empathy-status-preset-dialog.h          \
158         empathy-string-parser.h                 \
159         empathy-subscription-dialog.h   \
160         empathy-theme-manager.h                 \
161         empathy-tls-dialog.h                    \
162         empathy-ui-utils.h                      \
163         empathy-plist.h                         \
164         empathy-theme-adium.h                   \
165         empathy-webkit-utils.h                  \
166         $(NULL)
167
168
169 libempathy_gtk_la_SOURCES =                     \
170         $(libempathy_gtk_handwritten_source)    \
171         $(libempathy_gtk_headers)               \
172         totem-subtitle-encoding.c totem-subtitle-encoding.h
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)/libempathy-gtk/egg-list-box/libegglistbox.la \
192         $(top_builddir)/libempathy/libempathy.la
193
194 check_c_sources = \
195     $(libempathy_gtk_handwritten_source) \
196     $(libempathy_gtk_headers)
197 include $(top_srcdir)/tools/check-coding-style.mk
198 check-local: check-coding-style
199
200 uidir = $(datadir)/empathy
201 ui_DATA =                                       \
202         empathy-contact-widget.ui               \
203         empathy-contact-dialogs.ui              \
204         empathy-contact-blocking-dialog.ui      \
205         empathy-account-widget-generic.ui       \
206         empathy-account-widget-jabber.ui        \
207         empathy-account-widget-msn.ui           \
208         empathy-account-widget-sip.ui           \
209         empathy-account-widget-local-xmpp.ui    \
210         empathy-account-widget-irc.ui           \
211         empathy-account-widget-icq.ui           \
212         empathy-account-widget-yahoo.ui         \
213         empathy-account-widget-groupwise.ui     \
214         empathy-account-widget-aim.ui           \
215         empathy-status-preset-dialog.ui         \
216         empathy-log-window.ui                   \
217         empathy-chat.ui                         \
218         empathy-search-bar.ui                   \
219         empathy-individual-widget.ui
220
221 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
222         $(AM_V_GEN)true
223 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
224         $(AM_V_GEN)(cd $(srcdir) \
225         && glib-mkenums \
226                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
227                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
228                         --fhead "#include <glib-object.h>\n\n" \
229                         --fhead "G_BEGIN_DECLS\n\n" \
230                         --ftail "G_END_DECLS\n\n" \
231                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
232                         --fprod "#include <libempathy-gtk/@filename@>\n" \
233                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
234                         --eprod "GType @enum_name@_get_type (void);\n" \
235                 $(libempathy_gtk_headers) ) > xgen-gth \
236         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
237         && rm -f xgen-gth \
238         && echo timestamp > $(@F)
239
240 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
241         $(AM_V_GEN)(cd $(srcdir) \
242         && glib-mkenums \
243                         --fhead "#include <config.h>\n" \
244                         --fhead "#include <glib-object.h>\n" \
245                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
246                         --fprod "\n/* enumerations from \"@filename@\" */" \
247                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
248                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
249                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
250                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
251                         --vtail "  static GType type = 0;\n\n" \
252                         --vtail "  if (!type)\n" \
253                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
254                         --vtail "  return type;\n}\n\n" \
255                 $(libempathy_gtk_headers) ) > xgen-gtc \
256         && cp xgen-gtc $(@F) \
257         && rm -f xgen-gtc
258
259 EXTRA_DIST =                    \
260         $(ui_DATA)
261
262 if HAVE_GEOCLUE
263 libempathy_gtk_handwritten_source +=            \
264         empathy-location-manager.c
265
266 libempathy_gtk_headers +=                       \
267         empathy-location-manager.h
268 else
269 EXTRA_DIST +=                                   \
270         empathy-location-manager.c              \
271         empathy-location-manager.h
272 endif
273
274 CLEANFILES =                            \
275         $(BUILT_SOURCES)                \
276         stamp-empathy-gtk-enum-types.h