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