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