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