4 -DDATADIR=\""$(datadir)"\" \
5 -DPKGDATADIR=\""$(pkgdatadir)"\" \
6 $(LIBEMPATHYGTK_CFLAGS) \
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
18 lib_LTLIBRARIES = libempathy-gtk.la
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 \
31 empathy-chat-text-view.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 \
41 empathy-audio-sink.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 \
52 empathy-spell-dialog.c \
53 empathy-theme-boxes.c \
55 empathy-theme-manager.c \
57 totem-subtitle-encoding.c totem-subtitle-encoding.h
59 # do not distribute generated files
60 nodist_libempathy_gtk_la_SOURCES =\
63 libempathy_gtk_la_LIBADD = \
64 $(LIBEMPATHYGTK_LIBS) \
66 $(top_builddir)/libempathy/libempathy.la
68 libempathy_gtk_la_LDFLAGS = \
69 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
70 -export-symbols-regex ^empathy_
72 libempathy_gtk_headers = \
73 empathy-account-chooser.h \
74 empathy-account-widget.h \
75 empathy-account-widget-irc.h \
76 empathy-account-widget-sip.h \
77 empathy-avatar-chooser.h \
78 empathy-avatar-image.h \
79 empathy-cell-renderer-activatable.h \
80 empathy-cell-renderer-expander.h \
81 empathy-cell-renderer-text.h \
83 empathy-chat-text-view.h \
86 empathy-contact-dialogs.h \
87 empathy-contact-list-store.h \
88 empathy-contact-list-view.h \
89 empathy-contact-menu.h \
90 empathy-contact-selector.h \
91 empathy-contact-widget.h \
93 empathy-audio-sink.h \
96 empathy-video-widget.h \
98 empathy-irc-network-dialog.h \
99 empathy-log-window.h \
100 empathy-new-message-dialog.h \
101 empathy-presence-chooser.h \
102 empathy-profile-chooser.h \
103 empathy-smiley-manager.h \
105 empathy-spell-dialog.h \
106 empathy-theme-boxes.h \
107 empathy-theme-irc.h \
108 empathy-theme-manager.h \
111 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
112 libempathy_gtk_include_HEADERS = \
113 $(libempathy_gtk_headers) \
114 empathy-gtk-enum-types.h
116 uidir = $(datadir)/empathy
118 empathy-contact-widget.ui \
119 empathy-contact-dialogs.ui \
120 empathy-presence-chooser.ui \
121 empathy-account-widget-generic.ui \
122 empathy-account-widget-jabber.ui \
123 empathy-account-widget-msn.ui \
124 empathy-account-widget-sip.ui \
125 empathy-account-widget-salut.ui \
126 empathy-account-widget-irc.ui \
127 empathy-account-widget-icq.ui \
128 empathy-account-widget-yahoo.ui \
129 empathy-account-widget-groupwise.ui \
130 empathy-account-widget-aim.ui \
131 empathy-spell-dialog.ui \
132 empathy-log-window.ui \
134 empathy-new-message-dialog.ui
136 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
138 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
139 $(libempathy_gtk_la_SOURCES) ) \
140 | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
141 if cmp -s $@.tmp $@; then \
147 %-marshal.h: %-marshal.list Makefile
148 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
150 %-marshal.c: %-marshal.list Makefile
151 echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
152 $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
154 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
156 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
159 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
160 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
161 --fhead "#include <glib-object.h>\n\n" \
162 --fhead "G_BEGIN_DECLS\n\n" \
163 --ftail "G_END_DECLS\n\n" \
164 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
165 --fprod "#include <libempathy-gtk/@filename@>\n" \
166 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
167 --eprod "GType @enum_name@_get_type (void);\n" \
168 $(libempathy_gtk_headers) ) > xgen-gth \
169 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
171 && echo timestamp > $(@F)
173 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
176 --fhead "#include <config.h>\n" \
177 --fhead "#include <glib-object.h>\n" \
178 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
179 --fprod "\n/* enumerations from \"@filename@\" */" \
180 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
181 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
182 --vtail " { 0, NULL, NULL }\n};\n\n" \
183 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
184 --vtail " static GType type = 0;\n\n" \
185 --vtail " if (!type)\n" \
186 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
187 --vtail " return type;\n}\n\n" \
188 $(libempathy_gtk_headers) ) > xgen-gtc \
189 && cp xgen-gtc $(@F) \
192 pkgconfigdir = $(libdir)/pkgconfig
193 pkgconfig_DATA = libempathy-gtk.pc
200 stamp-empathy-gtk-enum-types.h