]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
2713548e4233b7dd723e5b73c2ada5f86d21f6ad
[empathy.git] / libempathy-gtk / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         -DGCR_API_SUBJECT_TO_CHANGE                     \
10         $(EMPATHY_CFLAGS)                               \
11         $(YELL_CFLAGS)                                  \
12         $(ENCHANT_CFLAGS)                               \
13         $(LIBCHAMPLAIN_CFLAGS)                          \
14         $(GEOCLUE_CFLAGS)                               \
15         $(GEOCODE_CFLAGS)                               \
16         $(MEEGO_CFLAGS)                                 \
17         $(CHEESE_CFLAGS)                                \
18         $(WARN_CFLAGS)                                  \
19         $(DISABLE_DEPRECATED)
20
21 BUILT_SOURCES =                                         \
22         empathy-gtk-enum-types.h                        \
23         empathy-gtk-enum-types.c
24
25 noinst_LTLIBRARIES = libempathy-gtk.la
26
27 libempathy_gtk_handwritten_source =             \
28         empathy-account-chooser.c               \
29         empathy-account-selector-dialog.c               \
30         empathy-account-widget-irc.c            \
31         empathy-account-widget-private.h        \
32         empathy-account-widget-sip.c            \
33         empathy-account-widget.c                \
34         empathy-avatar-chooser.c                \
35         empathy-avatar-image.c                  \
36         empathy-bad-password-dialog.c           \
37         empathy-base-password-dialog.c          \
38         empathy-call-utils.c                    \
39         empathy-cell-renderer-activatable.c     \
40         empathy-cell-renderer-expander.c        \
41         empathy-cell-renderer-text.c            \
42         empathy-chat-text-view.c                \
43         empathy-chat-view.c                     \
44         empathy-chat.c                          \
45         empathy-contact-blocking-dialog.c       \
46         empathy-contact-dialogs.c               \
47         empathy-contact-chooser.c               \
48         empathy-contactinfo-utils.c             \
49         empathy-live-search.c                   \
50         empathy-contact-search-dialog.c         \
51         empathy-contact-widget.c                \
52         empathy-dialpad-widget.c                \
53         empathy-geometry.c                      \
54         empathy-groups-widget.c                 \
55         empathy-individual-dialogs.c            \
56         empathy-individual-edit-dialog.c        \
57         empathy-individual-menu.c               \
58         empathy-individual-store.c              \
59         empathy-individual-store-channel.c              \
60         empathy-individual-store-manager.c              \
61         empathy-individual-view.c               \
62         empathy-individual-widget.c             \
63         empathy-input-text-view.c               \
64         empathy-irc-network-chooser.c \
65         empathy-irc-network-chooser-dialog.c \
66         empathy-irc-network-dialog.c            \
67         empathy-log-window.c                    \
68         empathy-new-account-dialog.c            \
69         empathy-new-message-dialog.c            \
70         empathy-new-call-dialog.c               \
71         empathy-notify-manager.c                \
72         empathy-password-dialog.c               \
73         empathy-presence-chooser.c              \
74         empathy-protocol-chooser.c              \
75         empathy-search-bar.c                    \
76         empathy-share-my-desktop.c              \
77         empathy-smiley-manager.c                \
78         empathy-sound-manager.c                 \
79         empathy-spell.c                         \
80         empathy-status-preset-dialog.c          \
81         empathy-string-parser.c                 \
82         empathy-theme-boxes.c                   \
83         empathy-theme-irc.c                     \
84         empathy-theme-manager.c                 \
85         empathy-tls-dialog.c                    \
86         empathy-ui-utils.c                      \
87         empathy-plist.c                         \
88         empathy-theme-adium.c                   \
89         empathy-webkit-utils.c                  \
90         $(NULL)
91
92 libempathy_gtk_headers =                        \
93         empathy-account-chooser.h               \
94         empathy-account-selector-dialog.h               \
95         empathy-account-widget-irc.h            \
96         empathy-account-widget-sip.h            \
97         empathy-account-widget.h                \
98         empathy-avatar-chooser.h                \
99         empathy-avatar-image.h                  \
100         empathy-bad-password-dialog.h           \
101         empathy-base-password-dialog.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-text-view.h                \
107         empathy-chat-view.h                     \
108         empathy-chat.h                          \
109         empathy-contact-blocking-dialog.h       \
110         empathy-contact-dialogs.h               \
111         empathy-contact-chooser.h               \
112         empathy-live-search.h                   \
113         empathy-contact-search-dialog.h         \
114         empathy-contact-widget.h                \
115         empathy-contactinfo-utils.h             \
116         empathy-dialpad-widget.h                \
117         empathy-geometry.h                      \
118         empathy-groups-widget.h                 \
119         empathy-images.h                        \
120         empathy-individual-dialogs.h            \
121         empathy-individual-edit-dialog.h        \
122         empathy-individual-menu.h               \
123         empathy-individual-store.h              \
124         empathy-individual-store-channel.h              \
125         empathy-individual-store-manager.h              \
126         empathy-individual-view.h               \
127         empathy-individual-widget.h             \
128         empathy-input-text-view.h               \
129         empathy-irc-network-chooser.h \
130         empathy-irc-network-chooser-dialog.h \
131         empathy-irc-network-dialog.h            \
132         empathy-log-window.h                    \
133         empathy-new-account-dialog.h            \
134         empathy-new-message-dialog.h            \
135         empathy-new-call-dialog.h               \
136         empathy-notify-manager.h                \
137         empathy-password-dialog.h               \
138         empathy-presence-chooser.h              \
139         empathy-protocol-chooser.h              \
140         empathy-search-bar.h                    \
141         empathy-share-my-desktop.h              \
142         empathy-smiley-manager.h                \
143         empathy-sound-manager.h                 \
144         empathy-spell.h                         \
145         empathy-status-preset-dialog.h          \
146         empathy-string-parser.h                 \
147         empathy-theme-boxes.h                   \
148         empathy-theme-irc.h                     \
149         empathy-theme-manager.h                 \
150         empathy-tls-dialog.h                    \
151         empathy-ui-utils.h                      \
152         empathy-plist.h                         \
153         empathy-theme-adium.h                   \
154         empathy-webkit-utils.h                  \
155         $(NULL)
156
157
158 libempathy_gtk_la_SOURCES =                     \
159         $(libempathy_gtk_handwritten_source)    \
160         $(libempathy_gtk_headers)               \
161         totem-subtitle-encoding.c totem-subtitle-encoding.h
162
163 # do not distribute generated files
164 nodist_libempathy_gtk_la_SOURCES =\
165         $(BUILT_SOURCES)
166
167 libempathy_gtk_la_LIBADD =                      \
168         $(EMPATHY_LIBS)                 \
169         $(EMPATHY_LIBS)                 \
170         $(GTK_LIBS)                     \
171         $(LIBNOTIFY_LIBS)                       \
172         $(CANBERRA_LIBS) \
173         $(ENCHANT_LIBS)                         \
174         $(LIBCHAMPLAIN_LIBS)                    \
175         $(GEOCLUE_LIBS)                         \
176         $(GEOCODE_LIBS)                         \
177         $(GCR_LIBS)                             \
178         $(MEEGO_LIBS)                           \
179         $(CHEESE_LIBS)                          \
180         $(top_builddir)/libempathy/libempathy.la
181
182 check_c_sources = \
183     $(libempathy_gtk_handwritten_source) \
184     $(libempathy_gtk_headers)
185 include $(top_srcdir)/tools/check-coding-style.mk
186 check-local: check-coding-style
187
188 uidir = $(datadir)/empathy
189 ui_DATA =                                       \
190         empathy-contact-widget.ui               \
191         empathy-contact-dialogs.ui              \
192         empathy-contact-blocking-dialog.ui      \
193         empathy-account-widget-generic.ui       \
194         empathy-account-widget-jabber.ui        \
195         empathy-account-widget-msn.ui           \
196         empathy-account-widget-sip.ui           \
197         empathy-account-widget-local-xmpp.ui    \
198         empathy-account-widget-irc.ui           \
199         empathy-account-widget-icq.ui           \
200         empathy-account-widget-yahoo.ui         \
201         empathy-account-widget-groupwise.ui     \
202         empathy-account-widget-aim.ui           \
203         empathy-status-preset-dialog.ui         \
204         empathy-log-window.ui                   \
205         empathy-chat.ui                         \
206         empathy-search-bar.ui                   \
207         empathy-individual-widget.ui
208
209 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
210         $(AM_V_GEN)true
211 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
212         $(AM_V_GEN)(cd $(srcdir) \
213         && glib-mkenums \
214                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
215                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
216                         --fhead "#include <glib-object.h>\n\n" \
217                         --fhead "G_BEGIN_DECLS\n\n" \
218                         --ftail "G_END_DECLS\n\n" \
219                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
220                         --fprod "#include <libempathy-gtk/@filename@>\n" \
221                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
222                         --eprod "GType @enum_name@_get_type (void);\n" \
223                 $(libempathy_gtk_headers) ) > xgen-gth \
224         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
225         && rm -f xgen-gth \
226         && echo timestamp > $(@F)
227
228 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
229         $(AM_V_GEN)(cd $(srcdir) \
230         && glib-mkenums \
231                         --fhead "#include <config.h>\n" \
232                         --fhead "#include <glib-object.h>\n" \
233                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
234                         --fprod "\n/* enumerations from \"@filename@\" */" \
235                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
236                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
237                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
238                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
239                         --vtail "  static GType type = 0;\n\n" \
240                         --vtail "  if (!type)\n" \
241                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
242                         --vtail "  return type;\n}\n\n" \
243                 $(libempathy_gtk_headers) ) > xgen-gtc \
244         && cp xgen-gtc $(@F) \
245         && rm -f xgen-gtc
246
247 EXTRA_DIST =                    \
248         $(ui_DATA)
249
250 if HAVE_GEOCLUE
251 libempathy_gtk_handwritten_source +=            \
252         empathy-location-manager.c
253
254 libempathy_gtk_headers +=                       \
255         empathy-location-manager.h
256 else
257 EXTRA_DIST +=                                   \
258         empathy-location-manager.c              \
259         empathy-location-manager.h
260 endif
261
262 CLEANFILES =                            \
263         $(BUILT_SOURCES)                \
264         stamp-empathy-gtk-enum-types.h