4 -DDATADIR=\""$(datadir)"\" \
9 empathy-gtk-enum-types.h \
10 empathy-gtk-enum-types.c
12 lib_LTLIBRARIES = libempathy-gtk.la
14 libempathy_gtk_la_SOURCES = \
15 ephy-spinner.c ephy-spinner.h \
16 empathy-main-window.c \
17 empathy-status-icon.c \
18 empathy-contact-widget.c \
19 empathy-contact-dialogs.c \
20 empathy-accounts-dialog.c \
21 empathy-account-widget-generic.c \
22 empathy-account-widget-jabber.c \
23 empathy-account-widget-msn.c \
24 empathy-account-widget-salut.c \
25 empathy-profile-chooser.c \
26 empathy-cell-renderer-expander.c \
27 empathy-cell-renderer-text.c \
28 empathy-cell-renderer-activatable.c \
30 empathy-spell-dialog.c \
31 empathy-contact-groups.c \
32 empathy-contact-list-store.c \
33 empathy-contact-list-view.c \
34 empathy-preferences.c \
35 empathy-theme-manager.c \
36 empathy-smiley-manager.c \
37 empathy-chat-window.c \
40 empathy-private-chat.c \
41 empathy-group-chat.c \
43 empathy-status-presets.c \
44 empathy-presence-chooser.c \
45 empathy-about-dialog.c \
46 empathy-account-chooser.c \
47 empathy-new-chatroom-dialog.c \
48 empathy-chatrooms-window.c \
49 empathy-log-window.c \
50 empathy-call-window.c \
51 empathy-avatar-chooser.c \
52 empathy-avatar-image.c \
55 # do not distribute generated files
56 nodist_libempathy_gtk_la_SOURCES =\
59 libempathy_gtk_la_LIBADD = \
61 $(top_builddir)/libempathy/libempathy.la
63 libempathy_gtk_la_LDFLAGS = \
64 -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE}
66 libempathy_gtk_headers = \
68 empathy-main-window.h \
69 empathy-status-icon.h \
70 empathy-contact-widget.h \
71 empathy-contact-dialogs.h \
72 empathy-accounts-dialog.h \
73 empathy-account-widget-generic.h \
74 empathy-account-widget-jabber.h \
75 empathy-account-widget-msn.h \
76 empathy-account-widget-salut.h \
77 empathy-profile-chooser.h \
78 empathy-cell-renderer-expander.h \
79 empathy-cell-renderer-text.h \
80 empathy-cell-renderer-activatable.h \
82 empathy-spell-dialog.h \
83 empathy-contact-groups.h \
84 empathy-contact-list-store.h \
85 empathy-contact-list-view.h \
86 empathy-preferences.h \
87 empathy-theme-manager.h \
88 empathy-smiley-manager.h \
89 empathy-chat-window.h \
92 empathy-private-chat.h \
93 empathy-group-chat.h \
95 empathy-status-presets.h \
96 empathy-presence-chooser.h \
97 empathy-about-dialog.h \
98 empathy-account-chooser.h \
99 empathy-new-chatroom-dialog.h \
100 empathy-chatrooms-window.h \
101 empathy-log-window.h \
102 empathy-call-window.h \
103 empathy-avatar-chooser.h \
104 empathy-avatar-image.h \
107 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
108 libempathy_gtk_include_HEADERS = \
109 $(libempathy_gtk_headers) \
110 empathy-gtk-enum-types.h
112 gladedir = $(datadir)/empathy
114 empathy-main-window.glade \
115 empathy-status-icon.glade \
116 empathy-contact-widget.glade \
117 empathy-contact-dialogs.glade \
118 empathy-preferences.glade \
119 empathy-presence-chooser.glade \
120 empathy-accounts-dialog.glade \
121 empathy-account-widget-jabber.glade \
122 empathy-account-widget-msn.glade \
123 empathy-account-widget-salut.glade \
124 empathy-new-chatroom-dialog.glade \
125 empathy-group-chat.glade \
126 empathy-chatrooms-window.glade \
127 empathy-spell-dialog.glade \
128 empathy-log-window.glade \
129 empathy-call-window.glade \
132 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
134 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
137 --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
138 --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
139 --fhead "#include <glib-object.h>\n\n" \
140 --fhead "G_BEGIN_DECLS\n\n" \
141 --ftail "G_END_DECLS\n\n" \
142 --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
143 --fprod "#include <libempathy-gtk/@filename@>\n" \
144 --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
145 --eprod "GType @enum_name@_get_type (void);\n" \
146 $(libempathy_gtk_headers) ) > xgen-gth \
147 && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
149 && echo timestamp > $(@F)
151 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
154 --fhead "#include <config.h>\n" \
155 --fhead "#include <glib-object.h>\n" \
156 --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
157 --fprod "\n/* enumerations from \"@filename@\" */" \
158 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
159 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
160 --vtail " { 0, NULL, NULL }\n};\n\n" \
161 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
162 --vtail " static GType type = 0;\n\n" \
163 --vtail " if (!type)\n" \
164 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
165 --vtail " return type;\n}\n\n" \
166 $(libempathy_gtk_headers) ) > xgen-gtc \
167 && cp xgen-gtc $(@F) \
170 dtddir = $(datadir)/empathy
172 empathy-status-presets.dtd \
173 empathy-contact-groups.dtd
175 pkgconfigdir = $(libdir)/pkgconfig
176 pkgconfig_DATA = libempathy-gtk.pc
184 stamp-empathy-gtk-enum-types.h