]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Add a generic UI to make easy building UI for protocol specific settings. Port empath...
[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-marshal.h                           \
10         empathy-gtk-marshal.c                           \
11         empathy-gtk-marshal.list                        \
12         empathy-gtk-enum-types.h                        \
13         empathy-gtk-enum-types.c
14
15 lib_LTLIBRARIES = libempathy-gtk.la
16
17 libempathy_gtk_la_SOURCES =                     \
18         ephy-spinner.c ephy-spinner.h           \
19         empathy-main-window.c                   \
20         empathy-status-icon.c                   \
21         empathy-conf.c                          \
22         empathy-contact-widget.c                \
23         empathy-contact-dialogs.c               \
24         empathy-accounts-dialog.c               \
25         empathy-account-widget.c                \
26         empathy-profile-chooser.c               \
27         empathy-cell-renderer-expander.c        \
28         empathy-cell-renderer-text.c            \
29         empathy-cell-renderer-activatable.c     \
30         empathy-spell.c                         \
31         empathy-spell-dialog.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-smiley-manager.c                \
40         empathy-chat-window.c                   \
41         empathy-chat.c                          \
42         empathy-chat-view.c                     \
43         empathy-private-chat.c                  \
44         empathy-group-chat.c                    \
45         empathy-geometry.c                      \
46         empathy-presence-chooser.c              \
47         empathy-about-dialog.c                  \
48         empathy-account-chooser.c               \
49         empathy-new-chatroom-dialog.c           \
50         empathy-chatrooms-window.c              \
51         empathy-log-window.c                    \
52         empathy-call-window.c                   \
53         empathy-avatar-chooser.c                \
54         empathy-avatar-image.c                  \
55         empathy-ui-utils.c                      \
56         empathy-new-message-dialog.c
57
58 # do not distribute generated files
59 nodist_libempathy_gtk_la_SOURCES =\
60         $(BUILT_SOURCES)
61
62 libempathy_gtk_la_LIBADD =                      \
63         $(EMPATHY_LIBS)                         \
64         $(top_builddir)/libempathy/libempathy.la
65
66 libempathy_gtk_la_LDFLAGS =                \
67        -version-info ${LIBEMPATHY_GTK_CURRENT}:${LIBEMPATHY_GTK_REVISION}:${LIBEMPATHY_GTK_AGE} \
68        -export-symbols-regex ^empathy_
69
70 libempathy_gtk_headers =                        \
71         empathy-images.h                        \
72         empathy-main-window.h                   \
73         empathy-status-icon.h                   \
74         empathy-conf.h                          \
75         empathy-contact-widget.h                \
76         empathy-contact-dialogs.h               \
77         empathy-accounts-dialog.h               \
78         empathy-account-widget.h                \
79         empathy-profile-chooser.h               \
80         empathy-cell-renderer-expander.h        \
81         empathy-cell-renderer-text.h            \
82         empathy-cell-renderer-activatable.h     \
83         empathy-spell.h                         \
84         empathy-spell-dialog.h                  \
85         empathy-contact-list-store.h            \
86         empathy-contact-list-view.h             \
87         empathy-preferences.h                   \
88         empathy-theme.h                         \
89         empathy-theme-boxes.h                   \
90         empathy-theme-irc.h                     \
91         empathy-theme-manager.h                 \
92         empathy-smiley-manager.h                \
93         empathy-chat-window.h                   \
94         empathy-chat.h                          \
95         empathy-chat-view.h                     \
96         empathy-private-chat.h                  \
97         empathy-group-chat.h                    \
98         empathy-geometry.h                      \
99         empathy-presence-chooser.h              \
100         empathy-about-dialog.h                  \
101         empathy-account-chooser.h               \
102         empathy-new-chatroom-dialog.h           \
103         empathy-chatrooms-window.h              \
104         empathy-log-window.h                    \
105         empathy-call-window.h                   \
106         empathy-avatar-chooser.h                \
107         empathy-avatar-image.h                  \
108         empathy-ui-utils.h                      \
109         empathy-new-message-dialog.h
110
111 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
112 libempathy_gtk_include_HEADERS =                \
113         $(libempathy_gtk_headers)               \
114         empathy-gtk-enum-types.h
115
116 gladedir = $(datadir)/empathy
117 glade_DATA =                                    \
118         empathy-main-window.glade               \
119         empathy-status-icon.glade               \
120         empathy-contact-widget.glade            \
121         empathy-contact-dialogs.glade           \
122         empathy-preferences.glade               \
123         empathy-presence-chooser.glade          \
124         empathy-accounts-dialog.glade           \
125         empathy-account-widget-jabber.glade     \
126         empathy-account-widget-msn.glade        \
127         empathy-account-widget-salut.glade      \
128         empathy-new-chatroom-dialog.glade       \
129         empathy-group-chat.glade                \
130         empathy-chatrooms-window.glade          \
131         empathy-spell-dialog.glade              \
132         empathy-log-window.glade                \
133         empathy-call-window.glade               \
134         empathy-chat.glade                      \
135         empathy-new-message-dialog.glade
136
137 empathy-gtk-marshal.list: $(libempathy_gtk_la_SOURCES) Makefile.am
138         ( cd $(srcdir) && \
139         sed -n -e 's/.*empathy_gtk_marshal_\([[:upper:]]*__[[:upper:]_]*\).*/\1/p' \
140         $(libempathy_gtk_la_SOURCES) ) \
141         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
142         if cmp -s $@.tmp $@; then \
143                 rm $@.tmp; \
144         else \
145                 mv $@.tmp $@; \
146         fi
147
148 %-marshal.h: %-marshal.list Makefile
149         $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
150
151 %-marshal.c: %-marshal.list Makefile
152         echo "#include \"empathy-gtk-marshal.h\"" > $@ && \
153         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
154
155 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
156         @true
157 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
158         (cd $(srcdir) \
159         && glib-mkenums \
160                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
161                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
162                         --fhead "#include <glib-object.h>\n\n" \
163                         --fhead "G_BEGIN_DECLS\n\n" \
164                         --ftail "G_END_DECLS\n\n" \
165                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
166                         --fprod "#include <libempathy-gtk/@filename@>\n" \
167                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
168                         --eprod "GType @enum_name@_get_type (void);\n" \
169                 $(libempathy_gtk_headers) ) > xgen-gth \
170         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
171         && rm -f xgen-gth \
172         && echo timestamp > $(@F)
173
174 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
175         (cd $(srcdir) \
176         && glib-mkenums \
177                         --fhead "#include <config.h>\n" \
178                         --fhead "#include <glib-object.h>\n" \
179                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
180                         --fprod "\n/* enumerations from \"@filename@\" */" \
181                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
182                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
183                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
184                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
185                         --vtail "  static GType type = 0;\n\n" \
186                         --vtail "  if (!type)\n" \
187                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
188                         --vtail "  return type;\n}\n\n" \
189                 $(libempathy_gtk_headers) ) > xgen-gtc \
190         && cp xgen-gtc $(@F) \
191         && rm -f xgen-gtc
192
193 pkgconfigdir = $(libdir)/pkgconfig
194 pkgconfig_DATA = libempathy-gtk.pc
195
196 EXTRA_DIST =                    \
197         $(glade_DATA)
198
199 CLEANFILES =                            \
200         $(BUILT_SOURCES)                \
201         stamp-empathy-gtk-enum-types.h