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