]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Add empathy to debug dialog CM chooser.
[empathy.git] / libempathy-gtk / Makefile.am
1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
3
4 AM_CPPFLAGS =                                           \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -DDATADIR=\""$(datadir)"\"                      \
8         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
9         $(LIBEMPATHYGTK_CFLAGS)                         \
10         $(ENCHANT_CFLAGS)                               \
11         $(LIBCHAMPLAIN_CFLAGS)                          \
12         $(GEOCLUE_CFLAGS)                               \
13         $(WEBKIT_CFLAGS)                                \
14         $(WARN_CFLAGS)                                  \
15         $(DISABLE_DEPRECATED)
16
17 BUILT_SOURCES =                                         \
18         empathy-gtk-marshal.h                           \
19         empathy-gtk-marshal.c                           \
20         empathy-gtk-marshal.list                        \
21         empathy-gtk-enum-types.h                        \
22         empathy-gtk-enum-types.c
23
24 lib_LTLIBRARIES = libempathy-gtk.la
25
26 libempathy_gtk_handwritten_source =             \
27         empathy-account-chooser.c               \
28         empathy-account-widget.c                \
29         empathy-account-widget-irc.c            \
30         empathy-account-widget-sip.c            \
31         empathy-avatar-chooser.c                \
32         empathy-avatar-image.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-chat-text-view.c                \
38         empathy-chat-view.c                     \
39         empathy-conf.c                          \
40         empathy-contact-dialogs.c               \
41         empathy-contact-list-store.c            \
42         empathy-contact-list-view.c             \
43         empathy-contact-menu.c                  \
44         empathy-contact-selector.c              \
45         empathy-contact-widget.c                \
46         empathy-geometry.c                      \
47         empathy-audio-sink.c                    \
48         empathy-audio-src.c                     \
49         empathy-video-src.c                     \
50         empathy-video-widget.c                  \
51         empathy-irc-network-dialog.c            \
52         empathy-log-window.c                    \
53         empathy-new-message-dialog.c            \
54         empathy-presence-chooser.c              \
55         empathy-profile-chooser.c               \
56         empathy-smiley-manager.c                \
57         empathy-spell.c                         \
58         empathy-status-preset-dialog.c          \
59         empathy-theme-boxes.c                   \
60         empathy-theme-irc.c                     \
61         empathy-theme-manager.c                 \
62         empathy-ui-utils.c
63
64 libempathy_gtk_la_SOURCES =                     \
65         $(libempathy_gtk_handwritten_source)    \
66         totem-subtitle-encoding.c totem-subtitle-encoding.h
67
68 # do not distribute generated files
69 nodist_libempathy_gtk_la_SOURCES =\
70         $(BUILT_SOURCES)
71
72 libempathy_gtk_la_LIBADD =                      \
73         $(LIBEMPATHYGTK_LIBS)                   \
74         $(ENCHANT_LIBS)                         \
75         $(LIBCHAMPLAIN_LIBS)                    \
76         $(GEOCLUE_LIBS)                         \
77         $(WEBKIT_LIBS)                          \
78         $(top_builddir)/libempathy/libempathy.la
79
80 libempathy_gtk_la_LDFLAGS =                \
81        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
82        -export-symbols-regex ^empathy_
83
84 libempathy_gtk_headers =                        \
85         empathy-account-chooser.h               \
86         empathy-account-widget.h                \
87         empathy-account-widget-irc.h            \
88         empathy-account-widget-sip.h            \
89         empathy-avatar-chooser.h                \
90         empathy-avatar-image.h                  \
91         empathy-cell-renderer-activatable.h     \
92         empathy-cell-renderer-expander.h        \
93         empathy-cell-renderer-text.h            \
94         empathy-chat.h                          \
95         empathy-chat-text-view.h                \
96         empathy-chat-view.h                     \
97         empathy-conf.h                          \
98         empathy-contact-dialogs.h               \
99         empathy-contact-list-store.h            \
100         empathy-contact-list-view.h             \
101         empathy-contact-menu.h                  \
102         empathy-contact-selector.h              \
103         empathy-contact-widget.h                \
104         empathy-geometry.h                      \
105         empathy-audio-sink.h                    \
106         empathy-audio-src.h                     \
107         empathy-video-src.h                     \
108         empathy-video-widget.h                  \
109         empathy-images.h                        \
110         empathy-irc-network-dialog.h            \
111         empathy-log-window.h                    \
112         empathy-new-message-dialog.h            \
113         empathy-presence-chooser.h              \
114         empathy-profile-chooser.h               \
115         empathy-smiley-manager.h                \
116         empathy-spell.h                         \
117         empathy-status-preset-dialog.h          \
118         empathy-theme-boxes.h                   \
119         empathy-theme-irc.h                     \
120         empathy-theme-manager.h                 \
121         empathy-ui-utils.h
122
123 check_c_sources = \
124     $(libempathy_gtk_handwritten_source) \
125     $(libempathy_gtk_headers)
126 include $(top_srcdir)/tools/check-coding-style.mk
127 check-local: check-coding-style
128
129 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
130 libempathy_gtk_include_HEADERS =                \
131         $(libempathy_gtk_headers)               \
132         empathy-gtk-enum-types.h
133
134 uidir = $(datadir)/empathy
135 ui_DATA =                                       \
136         empathy-contact-widget.ui               \
137         empathy-contact-dialogs.ui              \
138         empathy-account-widget-generic.ui       \
139         empathy-account-widget-jabber.ui        \
140         empathy-account-widget-msn.ui           \
141         empathy-account-widget-sip.ui           \
142         empathy-account-widget-salut.ui         \
143         empathy-account-widget-irc.ui           \
144         empathy-account-widget-icq.ui           \
145         empathy-account-widget-yahoo.ui         \
146         empathy-account-widget-groupwise.ui     \
147         empathy-account-widget-aim.ui           \
148         empathy-status-preset-dialog.ui         \
149         empathy-log-window.ui                   \
150         empathy-chat.ui                         \
151         empathy-new-message-dialog.ui
152
153 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
154         $(QUIET_GEN)( cd $(srcdir) && \
155         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
156         $(libempathy_gtk_la_SOURCES) ) \
157         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
158         if cmp -s $@.tmp $@; then \
159                 rm $@.tmp; \
160         else \
161                 mv $@.tmp $@; \
162         fi
163
164 %-marshal.h: %-marshal.list Makefile
165         $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
166
167 %-marshal.c: %-marshal.list Makefile
168         $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
169         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
170
171 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
172         $(QUIET_GEN)true
173 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
174         $(QUIET_GEN)(cd $(srcdir) \
175         && glib-mkenums \
176                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
177                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
178                         --fhead "#include <glib-object.h>\n\n" \
179                         --fhead "G_BEGIN_DECLS\n\n" \
180                         --ftail "G_END_DECLS\n\n" \
181                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
182                         --fprod "#include <libempathy-gtk/@filename@>\n" \
183                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
184                         --eprod "GType @enum_name@_get_type (void);\n" \
185                 $(libempathy_gtk_headers) ) > xgen-gth \
186         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
187         && rm -f xgen-gth \
188         && echo timestamp > $(@F)
189
190 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
191         $(QUIET_GEN)(cd $(srcdir) \
192         && glib-mkenums \
193                         --fhead "#include <config.h>\n" \
194                         --fhead "#include <glib-object.h>\n" \
195                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
196                         --fprod "\n/* enumerations from \"@filename@\" */" \
197                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
198                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
199                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
200                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
201                         --vtail "  static GType type = 0;\n\n" \
202                         --vtail "  if (!type)\n" \
203                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
204                         --vtail "  return type;\n}\n\n" \
205                 $(libempathy_gtk_headers) ) > xgen-gtc \
206         && cp xgen-gtc $(@F) \
207         && rm -f xgen-gtc
208
209 pkgconfigdir = $(libdir)/pkgconfig
210 pkgconfig_DATA = libempathy-gtk.pc
211
212 EXTRA_DIST =                    \
213         $(ui_DATA)
214
215 if HAVE_GEOCLUE
216 libempathy_gtk_handwritten_source +=            \
217         empathy-location-manager.c
218
219 libempathy_gtk_headers +=                       \
220         empathy-location-manager.h
221 else
222 EXTRA_DIST +=                                   \
223         empathy-location-manager.c              \
224         empathy-location-manager.h
225 endif
226
227 if HAVE_WEBKIT
228 libempathy_gtk_handwritten_source +=            \
229         empathy-theme-adium.c
230 libempathy_gtk_headers +=                       \
231         empathy-theme-adium.h
232 else
233 EXTRA_DIST +=                                   \
234         empathy-theme-adium.c                   \
235         empathy-theme-adium.h
236 endif
237
238 CLEANFILES =                            \
239         $(BUILT_SOURCES)                \
240         stamp-empathy-gtk-enum-types.h