]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Move empathy-contact-groups to libempathy, it has nothing to do in -gtk
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         $(LIBEMPATHY_CFLAGS)                            \
6         $(WARN_CFLAGS)
7
8 BUILT_SOURCES =                                         \
9         empathy-marshal.h                               \
10         empathy-marshal.c                               \
11         empathy-enum-types.h                            \
12         empathy-enum-types.c                            \
13         empathy-filter-glue.h                           \
14         empathy-chandler-glue.h
15
16 lib_LTLIBRARIES = libempathy.la
17
18 libempathy_la_SOURCES =                                 \
19         empathy-conf.c                                  \
20         empathy-avatar.c                                \
21         empathy-time.c                                  \
22         empathy-presence.c                              \
23         empathy-status-presets.c                        \
24         empathy-debug.c                                 \
25         empathy-utils.c                                 \
26         empathy-message.c                               \
27         empathy-chatroom-manager.c                      \
28         empathy-chatroom.c                              \
29         empathy-contact.c                               \
30         empathy-contact-groups.c                        \
31         empathy-contact-list.c                          \
32         empathy-contact-manager.c                       \
33         empathy-contact-factory.c                       \
34         empathy-tp-contact-factory.c                    \
35         empathy-tp-group.c                              \
36         empathy-tp-contact-list.c                       \
37         empathy-tp-chat.c                               \
38         empathy-tp-chatroom.c                           \
39         empathy-tp-roomlist.c                           \
40         empathy-tp-call.c                               \
41         empathy-chandler.c                              \
42         empathy-filter.c                                \
43         empathy-idle.c                                  \
44         empathy-log-manager.c
45
46 # do not distribute generated files
47 nodist_libempathy_la_SOURCES =\
48         $(BUILT_SOURCES)
49
50 libempathy_la_LIBADD =          \
51         $(LIBEMPATHY_LIBS)
52
53 libempathy_la_LDFLAGS =         \
54         -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE}
55
56 libempathy_headers =                            \
57         empathy-conf.h                          \
58         empathy-avatar.h                        \
59         empathy-time.h                          \
60         empathy-presence.h                      \
61         empathy-status-presets.h                \
62         empathy-debug.h                         \
63         empathy-utils.h                         \
64         empathy-message.h                       \
65         empathy-chatroom-manager.h              \
66         empathy-chatroom.h                      \
67         empathy-contact.h                       \
68         empathy-contact-groups.h                \
69         empathy-contact-list.h                  \
70         empathy-contact-manager.h               \
71         empathy-contact-factory.h               \
72         empathy-tp-contact-factory.h            \
73         empathy-tp-group.h                      \
74         empathy-tp-contact-list.h               \
75         empathy-tp-chat.h                       \
76         empathy-tp-chatroom.h                   \
77         empathy-tp-roomlist.h                   \
78         empathy-tp-call.h                       \
79         empathy-chandler.h                      \
80         empathy-filter.h                        \
81         empathy-idle.h                          \
82         empathy-log-manager.h                   \
83         tp-stream-engine-gen.h
84
85 libempathy_includedir = $(includedir)/libempathy/
86 libempathy_include_HEADERS =                    \
87         $(libempathy_headers)                   \
88         empathy-enum-types.h
89
90 %-marshal.h: %-marshal.list Makefile
91         $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
92
93 %-marshal.c: %-marshal.list Makefile
94         echo "#include \"empathy-marshal.h\"" > $@ && \
95         $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< >> $*-marshal.c
96
97 empathy-chandler-glue.h: empathy-chandler.xml Makefile
98         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
99 empathy-filter-glue.h: empathy-filter.xml Makefile
100         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
101
102 tp-stream-engine-gen.h: tp-stream-engine.xml Makefile.am
103         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=tp_stream_engine --mode=glib-client --output=$@ $<
104
105
106 empathy-enum-types.h: stamp-empathy-enum-types.h
107         @true
108 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
109         (cd $(srcdir) \
110         && glib-mkenums \
111                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
112                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
113                         --fhead "#include <glib-object.h>\n\n" \
114                         --fhead "G_BEGIN_DECLS\n\n" \
115                         --ftail "G_END_DECLS\n\n" \
116                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
117                         --fprod "#include <libempathy/@filename@>\n" \
118                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
119                         --eprod "GType @enum_name@_get_type (void);\n" \
120                 $(libempathy_headers) ) > xgen-gth \
121         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
122         && rm -f xgen-gth \
123         && echo timestamp > $(@F)
124
125 empathy-enum-types.c: $(libempathy_headers) Makefile
126         (cd $(srcdir) \
127         && glib-mkenums \
128                         --fhead "#include <config.h>\n" \
129                         --fhead "#include <glib-object.h>\n" \
130                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
131                         --fprod "\n/* enumerations from \"@filename@\" */" \
132                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
133                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
134                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
135                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
136                         --vtail "  static GType type = 0;\n\n" \
137                         --vtail "  if (!type)\n" \
138                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
139                         --vtail "  return type;\n}\n\n" \
140                 $(libempathy_headers) ) > xgen-gtc \
141         && cp xgen-gtc $(@F) \
142         && rm -f xgen-gtc
143
144 dtddir = $(datadir)/empathy
145 dtd_DATA =                                      \
146         empathy-status-presets.dtd              \
147         empathy-contact-groups.dtd              \
148         empathy-chatroom-manager.dtd
149
150 stylesheetdir = $(datadir)/empathy
151 stylesheet_DATA =               \
152         empathy-log-manager.xsl
153
154 pkgconfigdir = $(libdir)/pkgconfig
155 pkgconfig_DATA = libempathy.pc
156
157 EXTRA_DIST =                    \
158         empathy-marshal.list    \
159         empathy-chandler.xml    \
160         empathy-filter.xml      \
161         tp-stream-engine.xml    \
162         $(stylesheet_DATA)      \
163         $(dtd_DATA)
164
165 CLEANFILES =                            \
166         $(BUILT_SOURCES)                \
167         stamp-empathy-enum-types.h