]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Remove tp-yell and use TpCallChannel
[empathy.git] / libempathy / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -I$(top_builddir)                               \
8         -DDATADIR=\""$(datadir)"\"                      \
9         -DLOCALEDIR=\""$(datadir)/locale"\"             \
10         -DG_LOG_DOMAIN=\"empathy\"                      \
11         -DGCR_API_SUBJECT_TO_CHANGE                     \
12         $(EMPATHY_CFLAGS)                               \
13         $(GEOCLUE_CFLAGS)                               \
14         $(GEOCODE_CFLAGS)                               \
15         $(NETWORK_MANAGER_CFLAGS)                       \
16         $(CONNMAN_CFLAGS)                               \
17         $(UDEV_CFLAGS)                                  \
18         $(GOA_CFLAGS)                                   \
19         $(WARN_CFLAGS)                                  \
20         $(DISABLE_DEPRECATED)
21
22 BUILT_SOURCES =                                         \
23         empathy-enum-types.h                            \
24         empathy-enum-types.c
25
26 noinst_LTLIBRARIES = libempathy.la
27
28 libempathy_headers =                            \
29         action-chain-internal.h                 \
30         empathy-account-settings.h              \
31         empathy-auth-factory.h                  \
32         empathy-camera-monitor.h                \
33         empathy-chatroom-manager.h              \
34         empathy-chatroom.h                      \
35         empathy-client-factory.h \
36         empathy-connection-managers.h           \
37         empathy-connectivity.h                  \
38         empathy-connection-aggregator.h         \
39         empathy-contact-groups.h                \
40         empathy-contact-list.h                  \
41         empathy-contact.h                       \
42         empathy-debug.h                         \
43         empathy-ft-factory.h                    \
44         empathy-ft-handler.h                    \
45         empathy-gsettings.h                     \
46         empathy-presence-manager.h                              \
47         empathy-individual-manager.h            \
48         empathy-irc-network-manager.h           \
49         empathy-irc-network.h                   \
50         empathy-irc-server.h                    \
51         empathy-keyring.h                       \
52         empathy-location.h                      \
53         empathy-message.h                       \
54         empathy-request-util.h                  \
55         empathy-server-sasl-handler.h           \
56         empathy-server-tls-handler.h            \
57         empathy-status-presets.h                \
58         empathy-time.h                          \
59         empathy-tls-certificate.h               \
60         empathy-tls-verifier.h                  \
61         empathy-tp-chat.h                       \
62         empathy-tp-contact-factory.h            \
63         empathy-tp-contact-list.h               \
64         empathy-tp-roomlist.h                   \
65         empathy-tp-streamed-media.h             \
66         empathy-types.h                         \
67         empathy-utils.h
68
69 libempathy_handwritten_source =                         \
70         $(libempathy_headers)                           \
71         action-chain.c                                  \
72         empathy-account-settings.c                      \
73         empathy-auth-factory.c                          \
74         empathy-camera-monitor.c                        \
75         empathy-chatroom-manager.c                      \
76         empathy-chatroom.c                              \
77         empathy-client-factory.c \
78         empathy-connection-managers.c                   \
79         empathy-connectivity.c                          \
80         empathy-connection-aggregator.c         \
81         empathy-contact-groups.c                        \
82         empathy-contact-list.c                          \
83         empathy-contact.c                               \
84         empathy-debug.c                                 \
85         empathy-ft-factory.c                            \
86         empathy-ft-handler.c                            \
87         empathy-presence-manager.c                                      \
88         empathy-individual-manager.c                    \
89         empathy-irc-network-manager.c                   \
90         empathy-irc-network.c                           \
91         empathy-irc-server.c                            \
92         empathy-keyring.c                               \
93         empathy-message.c                               \
94         empathy-request-util.c                          \
95         empathy-server-sasl-handler.c                   \
96         empathy-server-tls-handler.c                    \
97         empathy-status-presets.c                        \
98         empathy-time.c                                  \
99         empathy-tls-certificate.c                       \
100         empathy-tls-verifier.c                          \
101         empathy-tp-chat.c                               \
102         empathy-tp-contact-factory.c                    \
103         empathy-tp-contact-list.c                       \
104         empathy-tp-roomlist.c                           \
105         empathy-tp-streamed-media.c                     \
106         empathy-utils.c
107
108 # these are sources that depend on GOA
109 goa_sources = \
110         empathy-goa-auth-handler.c \
111         empathy-goa-auth-handler.h \
112         $(NULL)
113
114 libempathy_la_SOURCES = \
115         $(libempathy_handwritten_source) \
116         cheese-camera-device-monitor.c cheese-camera-device-monitor.h
117
118 dtddir = $(datadir)/empathy
119 dtd_DATA =                                      \
120         empathy-status-presets.dtd              \
121         empathy-contact-groups.dtd              \
122         empathy-chatroom-manager.dtd            \
123         empathy-irc-networks.dtd
124
125 ircnetworksdir = $(datadir)/empathy
126 ircnetworks_DATA =              \
127         irc-networks.xml
128
129 EXTRA_DIST =                    \
130         $(dtd_DATA)             \
131         $(ircnetworks_DATA)
132
133 CLEANFILES =                            \
134         $(BUILT_SOURCES)                \
135         stamp-empathy-enum-types.h
136
137 if HAVE_GOA
138 libempathy_la_SOURCES += $(goa_sources)
139 else
140 EXTRA_DIST += $(goa_sources)
141 endif
142
143 # do not distribute generated files
144 nodist_libempathy_la_SOURCES =\
145         $(BUILT_SOURCES)
146
147 libempathy_la_LIBADD =          \
148         $(top_builddir)/extensions/libemp-extensions.la \
149         $(GCR_LIBS) \
150         $(EMPATHY_LIBS) \
151         $(GEOCLUE_LIBS) \
152         $(GEOCODE_LIBS) \
153         $(NETWORK_MANAGER_LIBS) \
154         $(CONNMAN_LIBS) \
155         $(UDEV_LIBS) \
156         $(GOA_LIBS) \
157         $(LIBM)
158
159 check_c_sources = \
160     $(libempathy_handwritten_source) \
161     $(goa_sources) \
162     $(NULL)
163
164 include $(top_srcdir)/tools/check-coding-style.mk
165 check-local: check-coding-style
166
167 empathy-enum-types.h: stamp-empathy-enum-types.h
168         $(AM_V_GEN)true
169 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
170         $(AM_V_GEN)(cd $(srcdir) \
171         && glib-mkenums \
172                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
173                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
174                         --fhead "#include <glib-object.h>\n\n" \
175                         --fhead "G_BEGIN_DECLS\n\n" \
176                         --ftail "G_END_DECLS\n\n" \
177                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
178                         --fprod "#include <libempathy/@filename@>\n" \
179                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
180                         --eprod "GType @enum_name@_get_type (void);\n" \
181                 $(libempathy_headers) ) > xgen-gth \
182         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
183         && rm -f xgen-gth \
184         && echo timestamp > $(@F)
185
186 empathy-enum-types.c: $(libempathy_headers) Makefile
187         $(AM_V_GEN)(cd $(srcdir) \
188         && glib-mkenums \
189                         --fhead "#include <config.h>\n" \
190                         --fhead "#include <glib-object.h>\n" \
191                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
192                         --fprod "\n/* enumerations from \"@filename@\" */" \
193                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
194                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
195                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
196                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
197                         --vtail "  static GType type = 0;\n\n" \
198                         --vtail "  if (!type)\n" \
199                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
200                         --vtail "  return type;\n}\n\n" \
201                 $(libempathy_headers) ) > xgen-gtc \
202         && cp xgen-gtc $(@F) \
203         && rm -f xgen-gtc