]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
UOA: Do not segfault when "Done" or "Cancel" button clicked but widget is not ready yet
[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         $(UOA_CFLAGS)                                   \
20         $(WARN_CFLAGS)                                  \
21         $(DISABLE_DEPRECATED)
22
23 BUILT_SOURCES =                                         \
24         empathy-enum-types.h                            \
25         empathy-enum-types.c
26
27 libempathy_headers =                            \
28         action-chain-internal.h                 \
29         empathy-account-settings.h              \
30         empathy-auth-factory.h                  \
31         empathy-camera-monitor.h                \
32         empathy-chatroom-manager.h              \
33         empathy-chatroom.h                      \
34         empathy-client-factory.h \
35         empathy-connection-managers.h           \
36         empathy-connection-aggregator.h         \
37         empathy-contact-groups.h                \
38         empathy-contact.h                       \
39         empathy-debug.h                         \
40         empathy-ft-factory.h                    \
41         empathy-ft-handler.h                    \
42         empathy-gsettings.h                     \
43         empathy-presence-manager.h                              \
44         empathy-individual-manager.h            \
45         empathy-irc-network-manager.h           \
46         empathy-irc-network.h                   \
47         empathy-irc-server.h                    \
48         empathy-keyring.h                       \
49         empathy-location.h                      \
50         empathy-message.h                       \
51         empathy-pkg-kit.h               \
52         empathy-request-util.h                  \
53         empathy-sasl-mechanisms.h               \
54         empathy-server-sasl-handler.h           \
55         empathy-server-tls-handler.h            \
56         empathy-status-presets.h                \
57         empathy-time.h                          \
58         empathy-tls-verifier.h                  \
59         empathy-tp-chat.h                       \
60         empathy-types.h                         \
61         empathy-utils.h
62
63 libempathy_handwritten_source =                         \
64         $(libempathy_headers)                           \
65         action-chain.c                                  \
66         empathy-account-settings.c                      \
67         empathy-auth-factory.c                          \
68         empathy-camera-monitor.c                        \
69         empathy-chatroom-manager.c                      \
70         empathy-chatroom.c                              \
71         empathy-client-factory.c \
72         empathy-connection-managers.c                   \
73         empathy-connection-aggregator.c         \
74         empathy-contact-groups.c                        \
75         empathy-contact.c                               \
76         empathy-debug.c                                 \
77         empathy-ft-factory.c                            \
78         empathy-ft-handler.c                            \
79         empathy-presence-manager.c                                      \
80         empathy-individual-manager.c                    \
81         empathy-irc-network-manager.c                   \
82         empathy-irc-network.c                           \
83         empathy-irc-server.c                            \
84         empathy-keyring.c                               \
85         empathy-message.c                               \
86         empathy-pkg-kit.c               \
87         empathy-request-util.c                          \
88         empathy-sasl-mechanisms.c                       \
89         empathy-server-sasl-handler.c                   \
90         empathy-server-tls-handler.c                    \
91         empathy-status-presets.c                        \
92         empathy-time.c                                  \
93         empathy-tls-verifier.c                          \
94         empathy-tp-chat.c                               \
95         empathy-utils.c
96
97 # these are sources that depend on GOA
98 goa_sources = \
99         empathy-goa-auth-handler.c \
100         empathy-goa-auth-handler.h \
101         $(NULL)
102
103 # these are sources that depend on Ubuntu Online Accounts
104 uoa_sources = \
105         empathy-uoa-auth-handler.c \
106         empathy-uoa-auth-handler.h \
107         empathy-uoa-utils.c \
108         empathy-uoa-utils.h \
109         $(NULL)
110
111 pkglib_LTLIBRARIES = libempathy.la
112
113 # libempathy's API is not stable and will never be, so use -release to make the
114 # SONAME of the plugin library change with every Empathy release.
115 libempathy_la_LDFLAGS = \
116    -no-undefined \
117    -release $(VERSION) \
118    $(NULL)
119
120 libempathy_la_SOURCES = \
121         $(libempathy_handwritten_source) \
122         cheese-camera-device-monitor.c cheese-camera-device-monitor.h
123
124 libempathy_la_LIBADD =          \
125         $(top_builddir)/extensions/libemp-extensions.la \
126         $(GCR_LIBS) \
127         $(EMPATHY_LIBS) \
128         $(GEOCLUE_LIBS) \
129         $(GEOCODE_LIBS) \
130         $(NETWORK_MANAGER_LIBS) \
131         $(CONNMAN_LIBS) \
132         $(UDEV_LIBS) \
133         $(GOA_LIBS) \
134         $(UOA_LIBS) \
135         $(LIBM)
136
137 dtddir = $(datadir)/empathy
138 dtd_DATA =                                      \
139         empathy-status-presets.dtd              \
140         empathy-contact-groups.dtd              \
141         empathy-chatroom-manager.dtd            \
142         empathy-irc-networks.dtd
143
144 ircnetworksdir = $(datadir)/empathy
145 ircnetworks_DATA =              \
146         irc-networks.xml
147
148 EXTRA_DIST =                    \
149         $(dtd_DATA)             \
150         $(ircnetworks_DATA)
151
152 CLEANFILES =                            \
153         $(BUILT_SOURCES)                \
154         stamp-empathy-enum-types.h
155
156 if HAVE_GOA
157 libempathy_la_SOURCES += $(goa_sources)
158 else
159 EXTRA_DIST += $(goa_sources)
160 endif
161
162 if HAVE_UOA
163 libempathy_la_SOURCES += $(uoa_sources)
164 else
165 EXTRA_DIST += $(uoa_sources)
166 endif
167
168 # do not distribute generated files
169 nodist_libempathy_la_SOURCES =\
170         $(BUILT_SOURCES)
171
172 check_c_sources = \
173     $(libempathy_handwritten_source) \
174     $(goa_sources) \
175     $(uoa_sources) \
176     $(NULL)
177
178 include $(top_srcdir)/tools/check-coding-style.mk
179 check-local: check-coding-style
180
181 empathy-enum-types.h: stamp-empathy-enum-types.h
182         $(AM_V_GEN)true
183 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
184         $(AM_V_GEN)(cd $(srcdir) \
185         && glib-mkenums \
186                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
187                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
188                         --fhead "#include <glib-object.h>\n\n" \
189                         --fhead "G_BEGIN_DECLS\n\n" \
190                         --ftail "G_END_DECLS\n\n" \
191                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
192                         --fprod "#include <libempathy/@filename@>\n" \
193                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
194                         --eprod "GType @enum_name@_get_type (void);\n" \
195                 $(libempathy_headers) ) > xgen-gth \
196         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
197         && rm -f xgen-gth \
198         && echo timestamp > $(@F)
199
200 empathy-enum-types.c: $(libempathy_headers) Makefile
201         $(AM_V_GEN)(cd $(srcdir) \
202         && glib-mkenums \
203                         --fhead "#include <config.h>\n" \
204                         --fhead "#include <glib-object.h>\n" \
205                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
206                         --fprod "\n/* enumerations from \"@filename@\" */" \
207                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
208                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
209                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
210                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
211                         --vtail "  static GType type = 0;\n\n" \
212                         --vtail "  if (!type)\n" \
213                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
214                         --vtail "  return type;\n}\n\n" \
215                 $(libempathy_headers) ) > xgen-gtc \
216         && cp xgen-gtc $(@F) \
217         && rm -f xgen-gtc