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