1 include $(top_srcdir)/tools/shave.mk
6 -DDATADIR=\""$(datadir)"\" \
7 -DPKGDATADIR=\""$(pkgdatadir)"\" \
8 $(LIBEMPATHYGTK_CFLAGS) \
14 empathy-gtk-marshal.h \
15 empathy-gtk-marshal.c \
16 empathy-gtk-marshal.list \
17 empathy-gtk-enum-types.h \
18 empathy-gtk-enum-types.c
20 lib_LTLIBRARIES = libempathy-gtk.la
22 libempathy_gtk_la_SOURCES = \
23 empathy-account-chooser.c \
24 empathy-account-widget.c \
25 empathy-account-widget-irc.c \
26 empathy-account-widget-sip.c \
27 empathy-avatar-chooser.c \
28 empathy-avatar-image.c \
29 empathy-cell-renderer-activatable.c \
30 empathy-cell-renderer-expander.c \
31 empathy-cell-renderer-text.c \
33 empathy-chat-text-view.c \
36 empathy-contact-dialogs.c \
37 empathy-contact-list-store.c \
38 empathy-contact-list-view.c \
39 empathy-contact-menu.c \
40 empathy-contact-selector.c \
41 empathy-contact-widget.c \
43 empathy-audio-sink.c \
46 empathy-video-widget.c \
47 empathy-irc-network-dialog.c \
48 empathy-log-window.c \
49 empathy-new-message-dialog.c \
50 empathy-presence-chooser.c \
51 empathy-profile-chooser.c \
52 empathy-smiley-manager.c \
54 empathy-status-preset-dialog.c \
55 empathy-theme-boxes.c \
57 empathy-theme-manager.c \
59 totem-subtitle-encoding.c totem-subtitle-encoding.h
61 # do not distribute generated files
62 nodist_libempathy_gtk_la_SOURCES =\
65 libempathy_gtk_la_LIBADD = \
66 $(LIBEMPATHYGTK_LIBS) \
68 $(top_builddir)/libempathy/libempathy.la
70 libempathy_gtk_la_LDFLAGS = \
71 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
72 -export-symbols-regex ^empathy_
74 libempathy_gtk_headers = \
75 empathy-account-chooser.h \
76 empathy-account-widget.h \
77 empathy-account-widget-irc.h \
78 empathy-account-widget-sip.h \
79 empathy-avatar-chooser.h \
80 empathy-avatar-image.h \
81 empathy-cell-renderer-activatable.h \
82 empathy-cell-renderer-expander.h \
83 empathy-cell-renderer-text.h \
85 empathy-chat-text-view.h \
88 empathy-contact-dialogs.h \
89 empathy-contact-list-store.h \
90 empathy-contact-list-view.h \
91 empathy-contact-menu.h \
92 empathy-contact-selector.h \
93 empathy-contact-widget.h \
95 empathy-audio-sink.h \
98 empathy-video-widget.h \
100 empathy-irc-network-dialog.h \
101 empathy-log-window.h \
102 empathy-new-message-dialog.h \
103 empathy-presence-chooser.h \
104 empathy-profile-chooser.h \
105 empathy-smiley-manager.h \
107 empathy-status-preset-dialog.h \
108 empathy-theme-boxes.h \
109 empathy-theme-irc.h \
110 empathy-theme-manager.h \
113 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
114 libempathy_gtk_include_HEADERS = \
115 $(libempathy_gtk_headers) \
116 empathy-gtk-enum-types.h
118 uidir = $(datadir)/empathy
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-status-preset-dialog.ui \
133 empathy-log-window.ui \
135 empathy-new-message-dialog.ui
137 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
138 $(QUIET_GEN)( cd $(srcdir) && \
139 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
140 $(libempathy_gtk_la_SOURCES) ) \
141 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
142 if cmp -s $@.tmp $@; then \
148 %-marshal.h: %-marshal.list Makefile
149 $(QUIET_GEN)$(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
151 %-marshal.c: %-marshal.list Makefile
152 $(QUIET_GEN)echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
153 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
155 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
157 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
158 $(QUIET_GEN)(cd $(srcdir) \
160 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
161 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
162 --fhead "#include <glib-object.h>\n\n" \
163 --fhead "G_BEGIN_DECLS\n\n" \
164 --ftail "G_END_DECLS\n\n" \
165 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
166 --fprod "#include <libempathy-gtk/@filename@>\n" \
167 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
168 --eprod "GType @enum_name@_get_type (void);\n" \
169 $(libempathy_gtk_headers) ) > xgen-gth \
170 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
172 && echo timestamp > $(@F)
174 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
175 $(QUIET_GEN)(cd $(srcdir) \
177 --fhead "#include <config.h>\n" \
178 --fhead "#include <glib-object.h>\n" \
179 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
180 --fprod "\n/* enumerations from \"@filename@\" */" \
181 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
182 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
183 --vtail " { 0, NULL, NULL }\n};\n\n" \
184 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
185 --vtail " static GType type = 0;\n\n" \
186 --vtail " if (!type)\n" \
187 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
188 --vtail " return type;\n}\n\n" \
189 $(libempathy_gtk_headers) ) > xgen-gtc \
190 && cp xgen-gtc $(@F) \
193 pkgconfigdir = $(libdir)/pkgconfig
194 pkgconfig_DATA = libempathy-gtk.pc
201 stamp-empathy-gtk-enum-types.h