4 -DDATADIR=\""$(datadir)"\" \
5 -DPKGDATADIR=\""$(pkgdatadir)"\" \
11 empathy-gtk-marshal.h \
12 empathy-gtk-marshal.c \
13 empathy-gtk-marshal.list \
14 empathy-gtk-enum-types.h \
15 empathy-gtk-enum-types.c
17 lib_LTLIBRARIES = libempathy-gtk.la
19 libempathy_gtk_la_SOURCES = \
20 empathy-account-chooser.c \
21 empathy-account-widget.c \
22 empathy-account-widget-irc.c \
23 empathy-account-widget-sip.c \
24 empathy-avatar-chooser.c \
25 empathy-avatar-image.c \
26 empathy-cell-renderer-activatable.c \
27 empathy-cell-renderer-expander.c \
28 empathy-cell-renderer-text.c \
30 empathy-chat-text-view.c \
33 empathy-contact-dialogs.c \
34 empathy-contact-list-store.c \
35 empathy-contact-list-view.c \
36 empathy-contact-menu.c \
37 empathy-contact-widget.c \
39 empathy-irc-network-dialog.c \
40 empathy-log-window.c \
41 empathy-new-message-dialog.c \
42 empathy-presence-chooser.c \
43 empathy-profile-chooser.c \
44 empathy-smiley-manager.c \
46 empathy-spell-dialog.c \
47 empathy-theme-boxes.c \
49 empathy-theme-manager.c \
51 totem-subtitle-encoding.c totem-subtitle-encoding.h
53 # do not distribute generated files
54 nodist_libempathy_gtk_la_SOURCES =\
57 libempathy_gtk_la_LIBADD = \
60 $(top_builddir)/libempathy/libempathy.la
62 libempathy_gtk_la_LDFLAGS = \
63 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
64 -export-symbols-regex ^empathy_
66 libempathy_gtk_headers = \
67 empathy-account-chooser.h \
68 empathy-account-widget.h \
69 empathy-account-widget-irc.h \
70 empathy-account-widget-sip.h \
71 empathy-avatar-chooser.h \
72 empathy-avatar-image.h \
73 empathy-cell-renderer-activatable.h \
74 empathy-cell-renderer-expander.h \
75 empathy-cell-renderer-text.h \
77 empathy-chat-text-view.h \
80 empathy-contact-dialogs.h \
81 empathy-contact-list-store.h \
82 empathy-contact-list-view.h \
83 empathy-contact-menu.h \
84 empathy-contact-widget.h \
87 empathy-irc-network-dialog.h \
88 empathy-log-window.h \
89 empathy-new-message-dialog.h \
90 empathy-presence-chooser.h \
91 empathy-profile-chooser.h \
92 empathy-smiley-manager.h \
94 empathy-spell-dialog.h \
95 empathy-theme-boxes.h \
97 empathy-theme-manager.h \
100 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
101 libempathy_gtk_include_HEADERS = \
102 $(libempathy_gtk_headers) \
103 empathy-gtk-enum-types.h
105 gladedir = $(datadir)/empathy
107 empathy-contact-widget.glade \
108 empathy-contact-dialogs.glade \
109 empathy-presence-chooser.glade \
110 empathy-account-widget-generic.glade \
111 empathy-account-widget-jabber.glade \
112 empathy-account-widget-msn.glade \
113 empathy-account-widget-sip.glade \
114 empathy-account-widget-salut.glade \
115 empathy-account-widget-irc.glade \
116 empathy-account-widget-icq.glade \
117 empathy-account-widget-yahoo.glade \
118 empathy-account-widget-groupwise.glade \
119 empathy-account-widget-aim.glade \
120 empathy-spell-dialog.glade \
121 empathy-log-window.glade \
123 empathy-new-message-dialog.glade
125 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
127 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
128 $(libempathy_gtk_la_SOURCES) ) \
129 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
130 if cmp -s $@.tmp $@; then \
136 %-marshal.h: %-marshal.list Makefile
137 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
139 %-marshal.c: %-marshal.list Makefile
140 echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
141 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
143 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
145 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
148 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
149 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
150 --fhead "#include <glib-object.h>\n\n" \
151 --fhead "G_BEGIN_DECLS\n\n" \
152 --ftail "G_END_DECLS\n\n" \
153 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
154 --fprod "#include <libempathy-gtk/@filename@>\n" \
155 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
156 --eprod "GType @enum_name@_get_type (void);\n" \
157 $(libempathy_gtk_headers) ) > xgen-gth \
158 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
160 && echo timestamp > $(@F)
162 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
165 --fhead "#include <config.h>\n" \
166 --fhead "#include <glib-object.h>\n" \
167 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
168 --fprod "\n/* enumerations from \"@filename@\" */" \
169 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
170 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
171 --vtail " { 0, NULL, NULL }\n};\n\n" \
172 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
173 --vtail " static GType type = 0;\n\n" \
174 --vtail " if (!type)\n" \
175 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
176 --vtail " return type;\n}\n\n" \
177 $(libempathy_gtk_headers) ) > xgen-gtc \
178 && cp xgen-gtc $(@F) \
181 pkgconfigdir = $(libdir)/pkgconfig
182 pkgconfig_DATA = libempathy-gtk.pc
189 stamp-empathy-gtk-enum-types.h