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