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