Display spelling suggestions in a submenu instead of in a separate
[empathy.git] / libempathy-gtk / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
6         $(LIBEMPATHYGTK_CFLAGS)                         \
7         $(ENCHANT_CFLAGS)                               \
8         $(WARN_CFLAGS)                                  \
9         $(DISABLE_DEPRECATED)
10
11 BUILT_SOURCES =                                         \
12         empathy-gtk-marshal.h                           \
13         empathy-gtk-marshal.c                           \
14         empathy-gtk-marshal.list                        \
15         empathy-gtk-enum-types.h                        \
16         empathy-gtk-enum-types.c
17
18 lib_LTLIBRARIES = libempathy-gtk.la
19
20 libempathy_gtk_la_SOURCES =                     \
21         empathy-account-chooser.c               \
22         empathy-account-widget.c                \
23         empathy-account-widget-irc.c            \
24         empathy-account-widget-sip.c            \
25         empathy-avatar-chooser.c                \
26         empathy-avatar-image.c                  \
27         empathy-cell-renderer-activatable.c     \
28         empathy-cell-renderer-expander.c        \
29         empathy-cell-renderer-text.c            \
30         empathy-chat.c                          \
31         empathy-chat-text-view.c                \
32         empathy-chat-view.c                     \
33         empathy-conf.c                          \
34         empathy-contact-dialogs.c               \
35         empathy-contact-list-store.c            \
36         empathy-contact-list-view.c             \
37         empathy-contact-menu.c                  \
38         empathy-contact-selector.c              \
39         empathy-contact-widget.c                \
40         empathy-geometry.c                      \
41         empathy-audio-sink.c                    \
42         empathy-audio-src.c                     \
43         empathy-video-src.c                     \
44         empathy-video-widget.c                  \
45         empathy-irc-network-dialog.c            \
46         empathy-log-window.c                    \
47         empathy-new-message-dialog.c            \
48         empathy-presence-chooser.c              \
49         empathy-profile-chooser.c               \
50         empathy-smiley-manager.c                \
51         empathy-spell.c                         \
52         empathy-theme-boxes.c                   \
53         empathy-theme-irc.c                     \
54         empathy-theme-manager.c                 \
55         empathy-ui-utils.c                      \
56         totem-subtitle-encoding.c totem-subtitle-encoding.h
57
58 # do not distribute generated files
59 nodist_libempathy_gtk_la_SOURCES =\
60         $(BUILT_SOURCES)
61
62 libempathy_gtk_la_LIBADD =                      \
63         $(LIBEMPATHYGTK_LIBS)                   \
64         $(ENCHANT_LIBS)                         \
65         $(top_builddir)/libempathy/libempathy.la
66
67 libempathy_gtk_la_LDFLAGS =                \
68        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
69        -export-symbols-regex ^empathy_
70
71 libempathy_gtk_headers =                        \
72         empathy-account-chooser.h               \
73         empathy-account-widget.h                \
74         empathy-account-widget-irc.h            \
75         empathy-account-widget-sip.h            \
76         empathy-avatar-chooser.h                \
77         empathy-avatar-image.h                  \
78         empathy-cell-renderer-activatable.h     \
79         empathy-cell-renderer-expander.h        \
80         empathy-cell-renderer-text.h            \
81         empathy-chat.h                          \
82         empathy-chat-text-view.h                \
83         empathy-chat-view.h                     \
84         empathy-conf.h                          \
85         empathy-contact-dialogs.h               \
86         empathy-contact-list-store.h            \
87         empathy-contact-list-view.h             \
88         empathy-contact-menu.h                  \
89         empathy-contact-selector.h              \
90         empathy-contact-widget.h                \
91         empathy-geometry.h                      \
92         empathy-audio-sink.h                    \
93         empathy-audio-src.h                     \
94         empathy-video-src.h                     \
95         empathy-video-widget.h                  \
96         empathy-images.h                        \
97         empathy-irc-network-dialog.h            \
98         empathy-log-window.h                    \
99         empathy-new-message-dialog.h            \
100         empathy-presence-chooser.h              \
101         empathy-profile-chooser.h               \
102         empathy-smiley-manager.h                \
103         empathy-spell.h                         \
104         empathy-theme-boxes.h                   \
105         empathy-theme-irc.h                     \
106         empathy-theme-manager.h                 \
107         empathy-ui-utils.h
108
109 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
110 libempathy_gtk_include_HEADERS =                \
111         $(libempathy_gtk_headers)               \
112         empathy-gtk-enum-types.h
113
114 uidir = $(datadir)/empathy
115 ui_DATA =                                       \
116         empathy-contact-widget.ui               \
117         empathy-contact-dialogs.ui              \
118         empathy-presence-chooser.ui             \
119         empathy-account-widget-generic.ui       \
120         empathy-account-widget-jabber.ui        \
121         empathy-account-widget-msn.ui           \
122         empathy-account-widget-sip.ui           \
123         empathy-account-widget-salut.ui         \
124         empathy-account-widget-irc.ui           \
125         empathy-account-widget-icq.ui           \
126         empathy-account-widget-yahoo.ui         \
127         empathy-account-widget-groupwise.ui     \
128         empathy-account-widget-aim.ui           \
129         empathy-log-window.ui                   \
130         empathy-chat.ui                         \
131         empathy-new-message-dialog.ui
132
133 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
134         ( cd $(srcdir) && \
135         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
136         $(libempathy_gtk_la_SOURCES) ) \
137         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
138         if cmp -s $@.tmp $@; then \
139                 rm $@.tmp; \
140         else \
141                 mv $@.tmp $@; \
142         fi
143
144 %-marshal.h: %-marshal.list Makefile
145         $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
146
147 %-marshal.c: %-marshal.list Makefile
148         echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
149         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
150
151 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
152         @true
153 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
154         (cd $(srcdir) \
155         && glib-mkenums \
156                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
157                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
158                         --fhead "#include <glib-object.h>\n\n" \
159                         --fhead "G_BEGIN_DECLS\n\n" \
160                         --ftail "G_END_DECLS\n\n" \
161                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
162                         --fprod "#include <libempathy-gtk/@filename@>\n" \
163                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
164                         --eprod "GType @enum_name@_get_type (void);\n" \
165                 $(libempathy_gtk_headers) ) > xgen-gth \
166         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
167         && rm -f xgen-gth \
168         && echo timestamp > $(@F)
169
170 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
171         (cd $(srcdir) \
172         && glib-mkenums \
173                         --fhead "#include <config.h>\n" \
174                         --fhead "#include <glib-object.h>\n" \
175                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
176                         --fprod "\n/* enumerations from \"@filename@\" */" \
177                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
178                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
179                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
180                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
181                         --vtail "  static GType type = 0;\n\n" \
182                         --vtail "  if (!type)\n" \
183                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
184                         --vtail "  return type;\n}\n\n" \
185                 $(libempathy_gtk_headers) ) > xgen-gtc \
186         && cp xgen-gtc $(@F) \
187         && rm -f xgen-gtc
188
189 pkgconfigdir = $(libdir)/pkgconfig
190 pkgconfig_DATA = libempathy-gtk.pc
191
192 EXTRA_DIST =                    \
193         $(ui_DATA)
194
195 CLEANFILES =                            \
196         $(BUILT_SOURCES)                \
197         stamp-empathy-gtk-enum-types.h