]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Merge branch 'send-video-576394'
[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-spell-dialog.c                  \
53         empathy-status-preset-dialog.c          \
54         empathy-theme-boxes.c                   \
55         empathy-theme-irc.c                     \
56         empathy-theme-manager.c                 \
57         empathy-ui-utils.c                      \
58         totem-subtitle-encoding.c totem-subtitle-encoding.h
59
60 # do not distribute generated files
61 nodist_libempathy_gtk_la_SOURCES =\
62         $(BUILT_SOURCES)
63
64 libempathy_gtk_la_LIBADD =                      \
65         $(LIBEMPATHYGTK_LIBS)                   \
66         $(ENCHANT_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-account-chooser.h               \
75         empathy-account-widget.h                \
76         empathy-account-widget-irc.h            \
77         empathy-account-widget-sip.h            \
78         empathy-avatar-chooser.h                \
79         empathy-avatar-image.h                  \
80         empathy-cell-renderer-activatable.h     \
81         empathy-cell-renderer-expander.h        \
82         empathy-cell-renderer-text.h            \
83         empathy-chat.h                          \
84         empathy-chat-text-view.h                \
85         empathy-chat-view.h                     \
86         empathy-conf.h                          \
87         empathy-contact-dialogs.h               \
88         empathy-contact-list-store.h            \
89         empathy-contact-list-view.h             \
90         empathy-contact-menu.h                  \
91         empathy-contact-selector.h              \
92         empathy-contact-widget.h                \
93         empathy-geometry.h                      \
94         empathy-audio-sink.h                    \
95         empathy-audio-src.h                     \
96         empathy-video-src.h                     \
97         empathy-video-widget.h                  \
98         empathy-images.h                        \
99         empathy-irc-network-dialog.h            \
100         empathy-log-window.h                    \
101         empathy-new-message-dialog.h            \
102         empathy-presence-chooser.h              \
103         empathy-profile-chooser.h               \
104         empathy-smiley-manager.h                \
105         empathy-spell.h                         \
106         empathy-spell-dialog.h                  \
107         empathy-status-preset-dialog.h          \
108         empathy-theme-boxes.h                   \
109         empathy-theme-irc.h                     \
110         empathy-theme-manager.h                 \
111         empathy-ui-utils.h
112
113 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
114 libempathy_gtk_include_HEADERS =                \
115         $(libempathy_gtk_headers)               \
116         empathy-gtk-enum-types.h
117
118 uidir = $(datadir)/empathy
119 ui_DATA =                                       \
120         empathy-contact-widget.ui               \
121         empathy-contact-dialogs.ui              \
122         empathy-account-widget-generic.ui       \
123         empathy-account-widget-jabber.ui        \
124         empathy-account-widget-msn.ui           \
125         empathy-account-widget-sip.ui           \
126         empathy-account-widget-salut.ui         \
127         empathy-account-widget-irc.ui           \
128         empathy-account-widget-icq.ui           \
129         empathy-account-widget-yahoo.ui         \
130         empathy-account-widget-groupwise.ui     \
131         empathy-account-widget-aim.ui           \
132         empathy-spell-dialog.ui                 \
133         empathy-status-preset-dialog.ui         \
134         empathy-log-window.ui                   \
135         empathy-chat.ui                         \
136         empathy-new-message-dialog.ui
137
138 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
139         ( cd $(srcdir) && \
140         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
141         $(libempathy_gtk_la_SOURCES) ) \
142         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
143         if cmp -s $@.tmp $@; then \
144                 rm $@.tmp; \
145         else \
146                 mv $@.tmp $@; \
147         fi
148
149 %-marshal.h: %-marshal.list Makefile
150         $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
151
152 %-marshal.c: %-marshal.list Makefile
153         echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
154         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
155
156 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
157         @true
158 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
159         (cd $(srcdir) \
160         && glib-mkenums \
161                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
162                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
163                         --fhead "#include <glib-object.h>\n\n" \
164                         --fhead "G_BEGIN_DECLS\n\n" \
165                         --ftail "G_END_DECLS\n\n" \
166                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
167                         --fprod "#include <libempathy-gtk/@filename@>\n" \
168                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
169                         --eprod "GType @enum_name@_get_type (void);\n" \
170                 $(libempathy_gtk_headers) ) > xgen-gth \
171         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
172         && rm -f xgen-gth \
173         && echo timestamp > $(@F)
174
175 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
176         (cd $(srcdir) \
177         && glib-mkenums \
178                         --fhead "#include <config.h>\n" \
179                         --fhead "#include <glib-object.h>\n" \
180                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
181                         --fprod "\n/* enumerations from \"@filename@\" */" \
182                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
183                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
184                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
185                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
186                         --vtail "  static GType type = 0;\n\n" \
187                         --vtail "  if (!type)\n" \
188                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
189                         --vtail "  return type;\n}\n\n" \
190                 $(libempathy_gtk_headers) ) > xgen-gtc \
191         && cp xgen-gtc $(@F) \
192         && rm -f xgen-gtc
193
194 pkgconfigdir = $(libdir)/pkgconfig
195 pkgconfig_DATA = libempathy-gtk.pc
196
197 EXTRA_DIST =                    \
198         $(ui_DATA)
199
200 CLEANFILES =                            \
201         $(BUILT_SOURCES)                \
202         stamp-empathy-gtk-enum-types.h