]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
merge git work
[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.c                                 \
36         empathy-theme-boxes.c                   \
37         empathy-theme-irc.c                             \
38         empathy-theme-manager.c                 \
39         empathy-theme-utils.c                   \
40         empathy-smiley-manager.c                \
41         empathy-chat-window.c                   \
42         empathy-chat.c                          \
43         empathy-chat-view.c                     \
44         empathy-private-chat.c                  \
45         empathy-group-chat.c                    \
46         empathy-geometry.c                      \
47         empathy-status-presets.c                \
48         empathy-presence-chooser.c              \
49         empathy-about-dialog.c                  \
50         empathy-account-chooser.c               \
51         empathy-new-chatroom-dialog.c           \
52         empathy-chatrooms-window.c              \
53         empathy-log-window.c                    \
54         empathy-call-window.c                   \
55         empathy-avatar-chooser.c                \
56         empathy-avatar-image.c                  \
57         empathy-ui-utils.c                      \
58         empathy-new-message-dialog.c
59
60 # do not distribute generated files
61 nodist_libempathy_gtk_la_SOURCES =\
62         $(BUILT_SOURCES)
63
64 libempathy_gtk_la_LIBADD =                      \
65         $(EMPATHY_LIBS)                         \
66         $(top_builddir)/libempathy/libempathy.la
67
68 libempathy_gtk_la_LDFLAGS =                \
69        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE}
70
71 libempathy_gtk_headers =                        \
72         empathy-images.h                        \
73         empathy-main-window.h                   \
74         empathy-status-icon.h                   \
75         empathy-contact-widget.h                \
76         empathy-contact-dialogs.h               \
77         empathy-accounts-dialog.h               \
78         empathy-account-widget-generic.h        \
79         empathy-account-widget-jabber.h         \
80         empathy-account-widget-msn.h            \
81         empathy-account-widget-salut.h          \
82         empathy-profile-chooser.h               \
83         empathy-cell-renderer-expander.h        \
84         empathy-cell-renderer-text.h            \
85         empathy-cell-renderer-activatable.h     \
86         empathy-spell.h                         \
87         empathy-spell-dialog.h                  \
88         empathy-contact-groups.h                \
89         empathy-contact-list-store.h            \
90         empathy-contact-list-view.h             \
91         empathy-preferences.h                   \
92         empathy-theme.h                                 \
93         empathy-theme-boxes.h                   \
94         empathy-theme-irc.h                             \
95         empathy-theme-manager.h                 \
96         empathy-theme-utils.h                   \
97         empathy-smiley-manager.h                \
98         empathy-chat-window.h                   \
99         empathy-chat.h                          \
100         empathy-chat-view.h                     \
101         empathy-private-chat.h                  \
102         empathy-group-chat.h                    \
103         empathy-geometry.h                      \
104         empathy-status-presets.h                \
105         empathy-presence-chooser.h              \
106         empathy-about-dialog.h                  \
107         empathy-account-chooser.h               \
108         empathy-new-chatroom-dialog.h           \
109         empathy-chatrooms-window.h              \
110         empathy-log-window.h                    \
111         empathy-call-window.h                   \
112         empathy-avatar-chooser.h                \
113         empathy-avatar-image.h                  \
114         empathy-ui-utils.h                      \
115         empathy-new-message-dialog.h
116
117 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
118 libempathy_gtk_include_HEADERS =                \
119         $(libempathy_gtk_headers)               \
120         empathy-gtk-enum-types.h
121
122 gladedir = $(datadir)/empathy
123 glade_DATA =                                    \
124         empathy-main-window.glade               \
125         empathy-status-icon.glade               \
126         empathy-contact-widget.glade            \
127         empathy-contact-dialogs.glade           \
128         empathy-preferences.glade               \
129         empathy-presence-chooser.glade          \
130         empathy-accounts-dialog.glade           \
131         empathy-account-widget-jabber.glade     \
132         empathy-account-widget-msn.glade        \
133         empathy-account-widget-salut.glade      \
134         empathy-new-chatroom-dialog.glade       \
135         empathy-group-chat.glade                \
136         empathy-chatrooms-window.glade          \
137         empathy-spell-dialog.glade              \
138         empathy-log-window.glade                \
139         empathy-call-window.glade               \
140         empathy-chat.glade                      \
141         empathy-new-message-dialog.glade
142
143 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
144         @true
145 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
146         (cd $(srcdir) \
147         && glib-mkenums \
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) \
159         && rm -f xgen-gth \
160         && echo timestamp > $(@F)
161
162 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
163         (cd $(srcdir) \
164         && glib-mkenums \
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) \
179         && rm -f xgen-gtc
180
181 dtddir = $(datadir)/empathy
182 dtd_DATA =                                      \
183         empathy-status-presets.dtd              \
184         empathy-contact-groups.dtd
185
186 pkgconfigdir = $(libdir)/pkgconfig
187 pkgconfig_DATA = libempathy-gtk.pc
188
189 EXTRA_DIST =                    \
190         $(glade_DATA)           \
191         $(dtd_DATA)
192
193 CLEANFILES =                            \
194         $(BUILT_SOURCES)                \
195         stamp-empathy-gtk-enum-types.h