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