]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Move empathy-conf to libempathy-gtk. libempathy do not depend directly on gconf anymore.
[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-conf.c                          \
19         empathy-contact-widget.c                \
20         empathy-contact-dialogs.c               \
21         empathy-accounts-dialog.c               \
22         empathy-account-widget-generic.c        \
23         empathy-account-widget-jabber.c         \
24         empathy-account-widget-msn.c            \
25         empathy-account-widget-salut.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
69 libempathy_gtk_headers =                        \
70         empathy-images.h                        \
71         empathy-main-window.h                   \
72         empathy-status-icon.h                   \
73         empathy-conf.h                          \
74         empathy-contact-widget.h                \
75         empathy-contact-dialogs.h               \
76         empathy-accounts-dialog.h               \
77         empathy-account-widget-generic.h        \
78         empathy-account-widget-jabber.h         \
79         empathy-account-widget-msn.h            \
80         empathy-account-widget-salut.h          \
81         empathy-profile-chooser.h               \
82         empathy-cell-renderer-expander.h        \
83         empathy-cell-renderer-text.h            \
84         empathy-cell-renderer-activatable.h     \
85         empathy-spell.h                         \
86         empathy-spell-dialog.h                  \
87         empathy-contact-list-store.h            \
88         empathy-contact-list-view.h             \
89         empathy-preferences.h                   \
90         empathy-theme.h                         \
91         empathy-theme-boxes.h                   \
92         empathy-theme-irc.h                     \
93         empathy-theme-manager.h                 \
94         empathy-smiley-manager.h                \
95         empathy-chat-window.h                   \
96         empathy-chat.h                          \
97         empathy-chat-view.h                     \
98         empathy-private-chat.h                  \
99         empathy-group-chat.h                    \
100         empathy-geometry.h                      \
101         empathy-presence-chooser.h              \
102         empathy-about-dialog.h                  \
103         empathy-account-chooser.h               \
104         empathy-new-chatroom-dialog.h           \
105         empathy-chatrooms-window.h              \
106         empathy-log-window.h                    \
107         empathy-call-window.h                   \
108         empathy-avatar-chooser.h                \
109         empathy-avatar-image.h                  \
110         empathy-ui-utils.h                      \
111         empathy-new-message-dialog.h
112
113 libempathy_gtk_includedir = $(includedir)/libempathy-gtk/
114 libempathy_gtk_include_HEADERS =                \
115         $(libempathy_gtk_headers)               \
116         empathy-gtk-enum-types.h
117
118 gladedir = $(datadir)/empathy
119 glade_DATA =                                    \
120         empathy-main-window.glade               \
121         empathy-status-icon.glade               \
122         empathy-contact-widget.glade            \
123         empathy-contact-dialogs.glade           \
124         empathy-preferences.glade               \
125         empathy-presence-chooser.glade          \
126         empathy-accounts-dialog.glade           \
127         empathy-account-widget-jabber.glade     \
128         empathy-account-widget-msn.glade        \
129         empathy-account-widget-salut.glade      \
130         empathy-new-chatroom-dialog.glade       \
131         empathy-group-chat.glade                \
132         empathy-chatrooms-window.glade          \
133         empathy-spell-dialog.glade              \
134         empathy-log-window.glade                \
135         empathy-call-window.glade               \
136         empathy-chat.glade                      \
137         empathy-new-message-dialog.glade
138
139 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
140         @true
141 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
142         (cd $(srcdir) \
143         && glib-mkenums \
144                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
145                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
146                         --fhead "#include <glib-object.h>\n\n" \
147                         --fhead "G_BEGIN_DECLS\n\n" \
148                         --ftail "G_END_DECLS\n\n" \
149                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
150                         --fprod "#include <libempathy-gtk/@filename@>\n" \
151                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
152                         --eprod "GType @enum_name@_get_type (void);\n" \
153                 $(libempathy_gtk_headers) ) > xgen-gth \
154         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
155         && rm -f xgen-gth \
156         && echo timestamp > $(@F)
157
158 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
159         (cd $(srcdir) \
160         && glib-mkenums \
161                         --fhead "#include <config.h>\n" \
162                         --fhead "#include <glib-object.h>\n" \
163                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
164                         --fprod "\n/* enumerations from \"@filename@\" */" \
165                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
166                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
167                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
168                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
169                         --vtail "  static GType type = 0;\n\n" \
170                         --vtail "  if (!type)\n" \
171                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
172                         --vtail "  return type;\n}\n\n" \
173                 $(libempathy_gtk_headers) ) > xgen-gtc \
174         && cp xgen-gtc $(@F) \
175         && rm -f xgen-gtc
176
177 pkgconfigdir = $(libdir)/pkgconfig
178 pkgconfig_DATA = libempathy-gtk.pc
179
180 EXTRA_DIST =                    \
181         $(glade_DATA)
182
183 CLEANFILES =                            \
184         $(BUILT_SOURCES)                \
185         stamp-empathy-gtk-enum-types.h