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-profile-chooser.c \
27 empathy-cell-renderer-expander.c \
28 empathy-cell-renderer-text.c \
29 empathy-cell-renderer-activatable.c \
31 empathy-spell-dialog.c \
32 empathy-contact-list-store.c \
33 empathy-contact-list-view.c \
34 empathy-preferences.c \
36 empathy-theme-boxes.c \
38 empathy-theme-manager.c \
39 empathy-smiley-manager.c \
40 empathy-chat-window.c \
43 empathy-private-chat.c \
44 empathy-group-chat.c \
46 empathy-presence-chooser.c \
47 empathy-about-dialog.c \
48 empathy-account-chooser.c \
49 empathy-new-chatroom-dialog.c \
50 empathy-chatrooms-window.c \
51 empathy-log-window.c \
52 empathy-call-window.c \
53 empathy-avatar-chooser.c \
54 empathy-avatar-image.c \
56 empathy-new-message-dialog.c
58 # do not distribute generated files
59 nodist_libempathy_gtk_la_SOURCES =\
62 libempathy_gtk_la_LIBADD = \
64 $(top_builddir)/libempathy/libempathy.la
66 libempathy_gtk_la_LDFLAGS = \
67 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
68 -export-symbols-regex ^empathy_
70 libempathy_gtk_headers = \
72 empathy-main-window.h \
73 empathy-status-icon.h \
75 empathy-contact-widget.h \
76 empathy-contact-dialogs.h \
77 empathy-accounts-dialog.h \
78 empathy-account-widget.h \
79 empathy-profile-chooser.h \
80 empathy-cell-renderer-expander.h \
81 empathy-cell-renderer-text.h \
82 empathy-cell-renderer-activatable.h \
84 empathy-spell-dialog.h \
85 empathy-contact-list-store.h \
86 empathy-contact-list-view.h \
87 empathy-preferences.h \
89 empathy-theme-boxes.h \
91 empathy-theme-manager.h \
92 empathy-smiley-manager.h \
93 empathy-chat-window.h \
96 empathy-private-chat.h \
97 empathy-group-chat.h \
99 empathy-presence-chooser.h \
100 empathy-about-dialog.h \
101 empathy-account-chooser.h \
102 empathy-new-chatroom-dialog.h \
103 empathy-chatrooms-window.h \
104 empathy-log-window.h \
105 empathy-call-window.h \
106 empathy-avatar-chooser.h \
107 empathy-avatar-image.h \
109 empathy-new-message-dialog.h
111 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
112 libempathy_gtk_include_HEADERS = \
113 $(libempathy_gtk_headers) \
114 empathy-gtk-enum-types.h
116 gladedir = $(datadir)/empathy
118 empathy-main-window.glade \
119 empathy-status-icon.glade \
120 empathy-contact-widget.glade \
121 empathy-contact-dialogs.glade \
122 empathy-preferences.glade \
123 empathy-presence-chooser.glade \
124 empathy-accounts-dialog.glade \
125 empathy-account-widget-jabber.glade \
126 empathy-account-widget-msn.glade \
127 empathy-account-widget-salut.glade \
128 empathy-new-chatroom-dialog.glade \
129 empathy-group-chat.glade \
130 empathy-chatrooms-window.glade \
131 empathy-spell-dialog.glade \
132 empathy-log-window.glade \
133 empathy-call-window.glade \
135 empathy-new-message-dialog.glade
137 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
139 sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:]]*__[[:upper:]_]*\).*/\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 $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
151 %-marshal.c: %-marshal.list Makefile
152 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)
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)
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