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