]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Add EmpathyIndividualEditDialog
[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-groups-widget.c                 \
57         empathy-individual-dialogs.c            \
58         empathy-individual-edit-dialog.c        \
59         empathy-individual-information-dialog.c \
60         empathy-individual-linker.c             \
61         empathy-individual-menu.c               \
62         empathy-individual-store.c              \
63         empathy-individual-view.c               \
64         empathy-individual-widget.c             \
65         empathy-irc-network-dialog.c            \
66         empathy-kludge-label.c                  \
67         empathy-log-window.c                    \
68         empathy-new-message-dialog.c            \
69         empathy-new-call-dialog.c               \
70         empathy-notify-manager.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.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-ui-utils.c                      \
86         empathy-video-src.c                     \
87         empathy-video-widget.c
88
89 libempathy_gtk_headers =                        \
90         empathy-account-chooser.h               \
91         empathy-account-widget-irc.h            \
92         empathy-account-widget-sip.h            \
93         empathy-account-widget.h                \
94         empathy-audio-sink.h                    \
95         empathy-audio-src.h                     \
96         empathy-avatar-chooser.h                \
97         empathy-avatar-image.h                  \
98         empathy-cell-renderer-activatable.h     \
99         empathy-cell-renderer-expander.h        \
100         empathy-cell-renderer-text.h            \
101         empathy-chat-text-view.h                \
102         empathy-chat-view.h                     \
103         empathy-chat.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-linking-dialog.h                \
109         empathy-live-search.h                   \
110         empathy-contact-selector.h              \
111         empathy-contact-selector-dialog.h \
112         empathy-contact-widget.h                \
113         empathy-geometry.h                      \
114         empathy-groups-widget.h                 \
115         empathy-images.h                        \
116         empathy-individual-dialogs.h            \
117         empathy-individual-edit-dialog.h        \
118         empathy-individual-information-dialog.h \
119         empathy-individual-linker.h             \
120         empathy-individual-menu.h               \
121         empathy-individual-store.h              \
122         empathy-individual-view.h               \
123         empathy-individual-widget.h             \
124         empathy-irc-network-dialog.h            \
125         empathy-kludge-label.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-persona-store.h                 \
131         empathy-persona-view.h                  \
132         empathy-presence-chooser.h              \
133         empathy-protocol-chooser.h              \
134         empathy-search-bar.h                    \
135         empathy-share-my-desktop.h              \
136         empathy-smiley-manager.h                \
137         empathy-sound.h                         \
138         empathy-spell.h                         \
139         empathy-status-preset-dialog.h          \
140         empathy-string-parser.h                 \
141         empathy-theme-boxes.h                   \
142         empathy-theme-irc.h                     \
143         empathy-theme-manager.h                 \
144         empathy-ui-utils.h                      \
145         empathy-video-src.h                     \
146         empathy-video-widget.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         $(MEEGO_LIBS)                           \
166         $(WEBKIT_LIBS)                          \
167         $(top_builddir)/libempathy/libempathy.la
168
169 check_c_sources = \
170     $(libempathy_gtk_handwritten_source) \
171     $(libempathy_gtk_headers)
172 include $(top_srcdir)/tools/check-coding-style.mk
173 check-local: check-coding-style
174
175 uidir = $(datadir)/empathy
176 ui_DATA =                                       \
177         empathy-contact-widget.ui               \
178         empathy-contact-dialogs.ui              \
179         empathy-account-widget-generic.ui       \
180         empathy-account-widget-jabber.ui        \
181         empathy-account-widget-msn.ui           \
182         empathy-account-widget-sip.ui           \
183         empathy-account-widget-local-xmpp.ui    \
184         empathy-account-widget-irc.ui           \
185         empathy-account-widget-icq.ui           \
186         empathy-account-widget-yahoo.ui         \
187         empathy-account-widget-groupwise.ui     \
188         empathy-account-widget-aim.ui           \
189         empathy-status-preset-dialog.ui         \
190         empathy-log-window.ui                   \
191         empathy-chat.ui                         \
192         empathy-contact-selector-dialog.ui      \
193         empathy-search-bar.ui                   \
194         empathy-individual-widget.ui
195
196 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
197         $(AM_V_GEN)( cd $(srcdir) && \
198         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
199         $(libempathy_gtk_la_SOURCES) ) \
200         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
201         @if cmp -s $@.tmp $@; then \
202                 rm $@.tmp; \
203         else \
204                 mv $@.tmp $@; \
205         fi
206
207 %-marshal.h: %-marshal.list Makefile
208         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
209
210 %-marshal.c: %-marshal.list Makefile
211         $(AM_V_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
212         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
213
214 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
215         $(AM_V_GEN)true
216 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
217         $(AM_V_GEN)(cd $(srcdir) \
218         && glib-mkenums \
219                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
220                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
221                         --fhead "#include <glib-object.h>\n\n" \
222                         --fhead "G_BEGIN_DECLS\n\n" \
223                         --ftail "G_END_DECLS\n\n" \
224                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
225                         --fprod "#include <libempathy-gtk/@filename@>\n" \
226                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
227                         --eprod "GType @enum_name@_get_type (void);\n" \
228                 $(libempathy_gtk_headers) ) > xgen-gth \
229         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
230         && rm -f xgen-gth \
231         && echo timestamp > $(@F)
232
233 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
234         $(AM_V_GEN)(cd $(srcdir) \
235         && glib-mkenums \
236                         --fhead "#include <config.h>\n" \
237                         --fhead "#include <glib-object.h>\n" \
238                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
239                         --fprod "\n/* enumerations from \"@filename@\" */" \
240                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
241                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
242                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
243                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
244                         --vtail "  static GType type = 0;\n\n" \
245                         --vtail "  if (!type)\n" \
246                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
247                         --vtail "  return type;\n}\n\n" \
248                 $(libempathy_gtk_headers) ) > xgen-gtc \
249         && cp xgen-gtc $(@F) \
250         && rm -f xgen-gtc
251
252 EXTRA_DIST =                    \
253         $(ui_DATA)
254
255 if HAVE_GEOCLUE
256 libempathy_gtk_handwritten_source +=            \
257         empathy-location-manager.c
258
259 libempathy_gtk_headers +=                       \
260         empathy-location-manager.h
261 else
262 EXTRA_DIST +=                                   \
263         empathy-location-manager.c              \
264         empathy-location-manager.h
265 endif
266
267 if HAVE_WEBKIT
268 libempathy_gtk_handwritten_source +=            \
269         empathy-plist.c                         \
270         empathy-theme-adium.c
271 libempathy_gtk_headers +=                       \
272         empathy-plist.h                         \
273         empathy-theme-adium.h
274 else
275 EXTRA_DIST +=                                   \
276         empathy-plist.c                         \
277         empathy-plist.h                         \
278         empathy-theme-adium.c                   \
279         empathy-theme-adium.h
280 endif
281
282 CLEANFILES =                            \
283         $(BUILT_SOURCES)                \
284         stamp-empathy-gtk-enum-types.h