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