]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Squashed commit of the following:
[empathy.git] / libempathy-gtk / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         $(EMPATHY_CFLAGS)                               \
6         $(WARN_CFLAGS)
7
8 BUILT_SOURCES =                                         \
9         empathy-gtk-enum-types.h                        \
10         empathy-gtk-enum-types.c
11
12 lib_LTLIBRARIES = libempathy-gtk.la
13
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     \
29         empathy-spell.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                   \
38         empathy-chat.c                          \
39         empathy-chat-view.c                     \
40         empathy-private-chat.c                  \
41         empathy-group-chat.c                    \
42         empathy-geometry.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                  \
53         empathy-ui-utils.c                      \
54         empathy-new-message-dialog.c
55
56 # do not distribute generated files
57 nodist_libempathy_gtk_la_SOURCES =\
58         $(BUILT_SOURCES)
59
60 libempathy_gtk_la_LIBADD =                      \
61         $(EMPATHY_LIBS)                         \
62         $(top_builddir)/libempathy/libempathy.la
63
64 libempathy_gtk_la_LDFLAGS =                \
65        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE}
66
67 libempathy_gtk_headers =                        \
68         empathy-images.h                        \
69         empathy-main-window.h                   \
70         empathy-status-icon.h                   \
71         empathy-contact-widget.h                \
72         empathy-contact-dialogs.h               \
73         empathy-accounts-dialog.h               \
74         empathy-account-widget-generic.h        \
75         empathy-account-widget-jabber.h         \
76         empathy-account-widget-msn.h            \
77         empathy-account-widget-salut.h          \
78         empathy-profile-chooser.h               \
79         empathy-cell-renderer-expander.h        \
80         empathy-cell-renderer-text.h            \
81         empathy-cell-renderer-activatable.h     \
82         empathy-spell.h                         \
83         empathy-spell-dialog.h                  \
84         empathy-contact-groups.h                \
85         empathy-contact-list-store.h            \
86         empathy-contact-list-view.h             \
87         empathy-preferences.h                   \
88         empathy-theme-manager.h                 \
89         empathy-smiley-manager.h                \
90         empathy-chat-window.h                   \
91         empathy-chat.h                          \
92         empathy-chat-view.h                     \
93         empathy-private-chat.h                  \
94         empathy-group-chat.h                    \
95         empathy-geometry.h                      \
96         empathy-status-presets.h                \
97         empathy-presence-chooser.h              \
98         empathy-about-dialog.h                  \
99         empathy-account-chooser.h               \
100         empathy-new-chatroom-dialog.h           \
101         empathy-chatrooms-window.h              \
102         empathy-log-window.h                    \
103         empathy-call-window.h                   \
104         empathy-avatar-chooser.h                \
105         empathy-avatar-image.h                  \
106         empathy-ui-utils.h                      \
107         empathy-new-message-dialog.h
108
109 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
110 libempathy_gtk_include_HEADERS =                \
111         $(libempathy_gtk_headers)               \
112         empathy-gtk-enum-types.h
113
114 gladedir = $(datadir)/empathy
115 glade_DATA =                                    \
116         empathy-main-window.glade               \
117         empathy-status-icon.glade               \
118         empathy-contact-widget.glade            \
119         empathy-contact-dialogs.glade           \
120         empathy-preferences.glade               \
121         empathy-presence-chooser.glade          \
122         empathy-accounts-dialog.glade           \
123         empathy-account-widget-jabber.glade     \
124         empathy-account-widget-msn.glade        \
125         empathy-account-widget-salut.glade      \
126         empathy-new-chatroom-dialog.glade       \
127         empathy-group-chat.glade                \
128         empathy-chatrooms-window.glade          \
129         empathy-spell-dialog.glade              \
130         empathy-log-window.glade                \
131         empathy-call-window.glade               \
132         empathy-chat.glade                      \
133         empathy-new-message-dialog.glade
134
135 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
136         @true
137 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
138         (cd $(srcdir) \
139         && glib-mkenums \
140                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
141                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
142                         --fhead "#include <glib-object.h>\n\n" \
143                         --fhead "G_BEGIN_DECLS\n\n" \
144                         --ftail "G_END_DECLS\n\n" \
145                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
146                         --fprod "#include <libempathy-gtk/@filename@>\n" \
147                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
148                         --eprod "GType @enum_name@_get_type (void);\n" \
149                 $(libempathy_gtk_headers) ) > xgen-gth \
150         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
151         && rm -f xgen-gth \
152         && echo timestamp > $(@F)
153
154 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
155         (cd $(srcdir) \
156         && glib-mkenums \
157                         --fhead "#include <config.h>\n" \
158                         --fhead "#include <glib-object.h>\n" \
159                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
160                         --fprod "\n/* enumerations from \"@filename@\" */" \
161                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
162                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
163                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
164                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
165                         --vtail "  static GType type = 0;\n\n" \
166                         --vtail "  if (!type)\n" \
167                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
168                         --vtail "  return type;\n}\n\n" \
169                 $(libempathy_gtk_headers) ) > xgen-gtc \
170         && cp xgen-gtc $(@F) \
171         && rm -f xgen-gtc
172
173 dtddir = $(datadir)/empathy
174 dtd_DATA =                                      \
175         empathy-status-presets.dtd              \
176         empathy-contact-groups.dtd
177
178 pkgconfigdir = $(libdir)/pkgconfig
179 pkgconfig_DATA = libempathy-gtk.pc
180
181 EXTRA_DIST =                    \
182         $(glade_DATA)           \
183         $(dtd_DATA)
184
185 CLEANFILES =                            \
186         $(BUILT_SOURCES)                \
187         stamp-empathy-gtk-enum-types.h