]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Merge remote-tracking branch 'pochu/error-dialog'
[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-call-utils.c                    \
37         empathy-cell-renderer-activatable.c     \
38         empathy-cell-renderer-expander.c        \
39         empathy-cell-renderer-text.c            \
40         empathy-chat-text-view.c                \
41         empathy-chat-view.c                     \
42         empathy-chat.c                          \
43         empathy-contact-blocking-dialog.c       \
44         empathy-contact-dialogs.c               \
45         empathy-contact-chooser.c               \
46         empathy-contact-list-store.c            \
47         empathy-contact-list-view.c             \
48         empathy-contact-menu.c                  \
49         empathy-linking-dialog.c                \
50         empathy-live-search.c                   \
51         empathy-contact-search-dialog.c         \
52         empathy-contact-selector-dialog.c \
53         empathy-contact-widget.c                \
54         empathy-geometry.c                      \
55         empathy-groups-widget.c                 \
56         empathy-individual-dialogs.c            \
57         empathy-individual-edit-dialog.c        \
58         empathy-individual-information-dialog.c \
59         empathy-individual-linker.c             \
60         empathy-individual-menu.c               \
61         empathy-individual-store.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-log-window.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-persona-store.c                 \
74         empathy-persona-view.c                  \
75         empathy-presence-chooser.c              \
76         empathy-protocol-chooser.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-theme-boxes.c                   \
85         empathy-theme-irc.c                     \
86         empathy-theme-manager.c                 \
87         empathy-tls-dialog.c                    \
88         empathy-ui-utils.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-account-widget-irc.h            \
98         empathy-account-widget-sip.h            \
99         empathy-account-widget.h                \
100         empathy-avatar-chooser.h                \
101         empathy-avatar-image.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-contact-list-store.h            \
113         empathy-contact-list-view.h             \
114         empathy-contact-menu.h                  \
115         empathy-linking-dialog.h                \
116         empathy-live-search.h                   \
117         empathy-contact-search-dialog.h         \
118         empathy-contact-selector-dialog.h \
119         empathy-contact-widget.h                \
120         empathy-geometry.h                      \
121         empathy-groups-widget.h                 \
122         empathy-images.h                        \
123         empathy-individual-dialogs.h            \
124         empathy-individual-edit-dialog.h        \
125         empathy-individual-information-dialog.h \
126         empathy-individual-linker.h             \
127         empathy-individual-menu.h               \
128         empathy-individual-store.h              \
129         empathy-individual-view.h               \
130         empathy-individual-widget.h             \
131         empathy-input-text-view.h               \
132         empathy-irc-network-chooser.h \
133         empathy-irc-network-chooser-dialog.h \
134         empathy-irc-network-dialog.h            \
135         empathy-log-window.h                    \
136         empathy-new-message-dialog.h            \
137         empathy-new-call-dialog.h               \
138         empathy-notify-manager.h                \
139         empathy-password-dialog.h               \
140         empathy-persona-store.h                 \
141         empathy-persona-view.h                  \
142         empathy-presence-chooser.h              \
143         empathy-protocol-chooser.h              \
144         empathy-search-bar.h                    \
145         empathy-share-my-desktop.h              \
146         empathy-smiley-manager.h                \
147         empathy-sound-manager.h                 \
148         empathy-spell.h                         \
149         empathy-status-preset-dialog.h          \
150         empathy-string-parser.h                 \
151         empathy-theme-boxes.h                   \
152         empathy-theme-irc.h                     \
153         empathy-theme-manager.h                 \
154         empathy-tls-dialog.h                    \
155         empathy-ui-utils.h                      \
156         empathy-plist.h                         \
157         empathy-theme-adium.h                   \
158         empathy-webkit-utils.h                  \
159         $(NULL)
160
161
162 libempathy_gtk_la_SOURCES =                     \
163         $(libempathy_gtk_handwritten_source)    \
164         $(libempathy_gtk_headers)               \
165         totem-subtitle-encoding.c totem-subtitle-encoding.h
166
167 # do not distribute generated files
168 nodist_libempathy_gtk_la_SOURCES =\
169         $(BUILT_SOURCES)
170
171 libempathy_gtk_la_LIBADD =                      \
172         $(EMPATHY_LIBS)                 \
173         $(EMPATHY_LIBS)                 \
174         $(GTK_LIBS)                     \
175         $(LIBNOTIFY_LIBS)                       \
176         $(CANBERRA_LIBS) \
177         $(ENCHANT_LIBS)                         \
178         $(LIBCHAMPLAIN_LIBS)                    \
179         $(GEOCLUE_LIBS)                         \
180         $(GEOCODE_LIBS)                         \
181         $(GCR_LIBS)                             \
182         $(MEEGO_LIBS)                           \
183         $(CHEESE_LIBS)                          \
184         $(top_builddir)/libempathy/libempathy.la
185
186 check_c_sources = \
187     $(libempathy_gtk_handwritten_source) \
188     $(libempathy_gtk_headers)
189 include $(top_srcdir)/tools/check-coding-style.mk
190 check-local: check-coding-style
191
192 uidir = $(datadir)/empathy
193 ui_DATA =                                       \
194         empathy-contact-widget.ui               \
195         empathy-contact-dialogs.ui              \
196         empathy-contact-blocking-dialog.ui      \
197         empathy-account-widget-generic.ui       \
198         empathy-account-widget-jabber.ui        \
199         empathy-account-widget-msn.ui           \
200         empathy-account-widget-sip.ui           \
201         empathy-account-widget-local-xmpp.ui    \
202         empathy-account-widget-irc.ui           \
203         empathy-account-widget-icq.ui           \
204         empathy-account-widget-yahoo.ui         \
205         empathy-account-widget-groupwise.ui     \
206         empathy-account-widget-aim.ui           \
207         empathy-status-preset-dialog.ui         \
208         empathy-log-window.ui                   \
209         empathy-chat.ui                         \
210         empathy-contact-selector-dialog.ui      \
211         empathy-search-bar.ui                   \
212         empathy-individual-widget.ui
213
214 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
215         $(AM_V_GEN)true
216 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
217         $(AM_V_GEN)(cd $(srcdir) \
218         && glib-mkenums \
219                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
220                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
221                         --fhead "#include <glib-object.h>\n\n" \
222                         --fhead "G_BEGIN_DECLS\n\n" \
223                         --ftail "G_END_DECLS\n\n" \
224                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
225                         --fprod "#include <libempathy-gtk/@filename@>\n" \
226                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
227                         --eprod "GType @enum_name@_get_type (void);\n" \
228                 $(libempathy_gtk_headers) ) > xgen-gth \
229         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
230         && rm -f xgen-gth \
231         && echo timestamp > $(@F)
232
233 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
234         $(AM_V_GEN)(cd $(srcdir) \
235         && glib-mkenums \
236                         --fhead "#include <config.h>\n" \
237                         --fhead "#include <glib-object.h>\n" \
238                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
239                         --fprod "\n/* enumerations from \"@filename@\" */" \
240                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
241                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
242                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
243                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
244                         --vtail "  static GType type = 0;\n\n" \
245                         --vtail "  if (!type)\n" \
246                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
247                         --vtail "  return type;\n}\n\n" \
248                 $(libempathy_gtk_headers) ) > xgen-gtc \
249         && cp xgen-gtc $(@F) \
250         && rm -f xgen-gtc
251
252 EXTRA_DIST =                    \
253         $(ui_DATA)
254
255 if HAVE_GEOCLUE
256 libempathy_gtk_handwritten_source +=            \
257         empathy-location-manager.c
258
259 libempathy_gtk_headers +=                       \
260         empathy-location-manager.h
261 else
262 EXTRA_DIST +=                                   \
263         empathy-location-manager.c              \
264         empathy-location-manager.h
265 endif
266
267 CLEANFILES =                            \
268         $(BUILT_SOURCES)                \
269         stamp-empathy-gtk-enum-types.h