4 -DDATADIR=\""$(datadir)"\" \
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
15 lib_LTLIBRARIES = libempathy-gtk.la
17 libempathy_gtk_la_SOURCES = \
18 ephy-spinner.c ephy-spinner.h \
19 empathy-main-window.c \
20 empathy-status-icon.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 \
32 empathy-spell-dialog.c \
33 empathy-contact-list-store.c \
34 empathy-contact-list-view.c \
35 empathy-preferences.c \
37 empathy-theme-boxes.c \
39 empathy-theme-manager.c \
40 empathy-smiley-manager.c \
41 empathy-chat-window.c \
44 empathy-private-chat.c \
45 empathy-group-chat.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 \
57 empathy-new-message-dialog.c \
58 empathy-irc-network-dialog.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 = \
67 $(top_builddir)/libempathy/libempathy.la
69 libempathy_gtk_la_LDFLAGS = \
70 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
71 -export-symbols-regex ^empathy_
73 libempathy_gtk_headers = \
75 empathy-main-window.h \
76 empathy-status-icon.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 \
88 empathy-spell-dialog.h \
89 empathy-contact-list-store.h \
90 empathy-contact-list-view.h \
91 empathy-preferences.h \
93 empathy-theme-boxes.h \
95 empathy-theme-manager.h \
96 empathy-smiley-manager.h \
97 empathy-chat-window.h \
100 empathy-private-chat.h \
101 empathy-group-chat.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 \
113 empathy-new-message-dialog.h \
114 empathy-irc-network-dialog.h
116 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
117 libempathy_gtk_include_HEADERS = \
118 $(libempathy_gtk_headers) \
119 empathy-gtk-enum-types.h
121 gladedir = $(datadir)/empathy
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-generic.glade \
131 empathy-account-widget-jabber.glade \
132 empathy-account-widget-msn.glade \
133 empathy-account-widget-salut.glade \
134 empathy-account-widget-irc.glade \
135 empathy-account-widget-icq.glade \
136 empathy-account-widget-yahoo.glade \
137 empathy-new-chatroom-dialog.glade \
138 empathy-group-chat.glade \
139 empathy-chatrooms-window.glade \
140 empathy-spell-dialog.glade \
141 empathy-log-window.glade \
142 empathy-call-window.glade \
144 empathy-new-message-dialog.glade
146 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
148 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
149 $(libempathy_gtk_la_SOURCES) ) \
150 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
151 if cmp -s $@.tmp $@; then \
157 %-marshal.h: %-marshal.list Makefile
158 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
160 %-marshal.c: %-marshal.list Makefile
161 echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
162 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
164 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
166 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
169 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
170 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
171 --fhead "#include <glib-object.h>\n\n" \
172 --fhead "G_BEGIN_DECLS\n\n" \
173 --ftail "G_END_DECLS\n\n" \
174 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
175 --fprod "#include <libempathy-gtk/@filename@>\n" \
176 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
177 --eprod "GType @enum_name@_get_type (void);\n" \
178 $(libempathy_gtk_headers) ) > xgen-gth \
179 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
181 && echo timestamp > $(@F)
183 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
186 --fhead "#include <config.h>\n" \
187 --fhead "#include <glib-object.h>\n" \
188 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
189 --fprod "\n/* enumerations from \"@filename@\" */" \
190 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
191 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
192 --vtail " { 0, NULL, NULL }\n};\n\n" \
193 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
194 --vtail " static GType type = 0;\n\n" \
195 --vtail " if (!type)\n" \
196 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
197 --vtail " return type;\n}\n\n" \
198 $(libempathy_gtk_headers) ) > xgen-gtc \
199 && cp xgen-gtc $(@F) \
202 pkgconfigdir = $(libdir)/pkgconfig
203 pkgconfig_DATA = libempathy-gtk.pc
210 stamp-empathy-gtk-enum-types.h