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