~ubuntu-branches/ubuntu/precise/telepathy-mission-control-5/precise

« back to all changes in this revision

Viewing changes to src/Makefile.am

Tags: upstream-5.5.2
ImportĀ upstreamĀ versionĀ 5.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
           $(DBUS_CFLAGS) \
4
4
           $(GLIB_CFLAGS) \
5
5
           -DG_LOG_DOMAIN=\"mcd\" \
 
6
           -DMCD_PLUGIN_LOADER_DIR=\"@libdir@/mission-control-plugins.@MCP_ABI_VERSION@\" \
6
7
           -DMC_DISABLE_DEPRECATED -I$(top_srcdir)
7
8
 
8
9
AM_CFLAGS = $(ERROR_CFLAGS)
16
17
        mcd-account-compat.h \
17
18
        mcd-account-conditions.h \
18
19
        mcd-account-manager.h \
 
20
        mcd-account-manager-default.h \
19
21
        mcd-debug.h \
20
22
        mcd-mission.h \
21
23
        mcd-operation.h \
35
37
        mcd-provisioning.h \
36
38
        mcd-provisioning-factory.h
37
39
 
 
40
if ENABLE_LIBACCOUNTS_SSO
 
41
mc_headers += mcd-account-manager-sso.h
 
42
endif
 
43
 
38
44
mc_gen_headers = \
39
45
        _gen/cli-Connection_Interface_Contact_Capabilities_Draft1.h \
40
46
        _gen/cli-Connection_Interface_Contact_Capabilities.h \
43
49
        _gen/svc-Account_Interface_Compat.h \
44
50
        _gen/svc-Account_Interface_Conditions.h \
45
51
        _gen/svc-Account_Interface_Stats.h \
46
 
        _gen/svc-Account_Manager_Interface_Query.h
 
52
        _gen/svc-Account_Manager_Interface_Query.h \
 
53
        _gen/svc-Account_Manager_Interface_SSO.h
47
54
 
48
55
nodist_libmcd_convenience_la_SOURCES = \
49
56
        _gen/cli-Connection_Interface_Contact_Capabilities_Draft1-body.h \
57
64
        _gen/svc-Account_Interface_Conditions.c \
58
65
        _gen/svc-Account_Interface_Stats.c \
59
66
        _gen/svc-Account_Manager_Interface_Query.c \
 
67
        _gen/svc-Account_Manager_Interface_SSO.c \
60
68
        mcd-enum-types.c \
61
69
        mcd-enum-types.h \
62
70
        mcd-signals-marshal.c \
72
80
 
73
81
libmcd_convenience_la_LIBADD = \
74
82
        $(top_builddir)/libmcclient/libmcclient.la \
 
83
        $(top_builddir)/mission-control-plugins/libmission-control-plugins.la \
75
84
        $(TELEPATHY_LIBS) \
76
85
        $(DBUS_LIBS) \
77
86
        $(GLIB_LIBS)
80
89
libmcd_convenience_la_LIBADD += $(GNOME_KEYRING_LIBS)
81
90
endif
82
91
 
 
92
if ENABLE_LIBACCOUNTS_SSO
 
93
libmcd_convenience_la_LIBADD += $(LIBACCOUNTS_SSO_LIBS)
 
94
INCLUDES += $(LIBACCOUNTS_SSO_CFLAGS)
 
95
endif
 
96
 
83
97
noinst_LTLIBRARIES = libmcd-convenience.la
84
98
 
85
 
if ENABLE_PLUGINS
86
 
# When plugins are enabled, libmissioncontrol-server.la is a shared library
87
 
# that wraps the convenience library
 
99
if ENABLE_MCD_PLUGINS
 
100
# When this older plugin API is enabled, libmissioncontrol-server.la is a
 
101
# shared library that wraps the convenience library
88
102
lib_LTLIBRARIES = libmissioncontrol-server.la
89
103
libmissioncontrol_server_la_SOURCES =
90
104
libmissioncontrol_server_la_LIBADD = libmcd-convenience.la
106
120
genincludedir = $(mission_control_includedir)/_gen
107
121
nodist_geninclude_HEADERS = $(mc_gen_headers)
108
122
 
109
 
# We need GModule to load plugins
110
 
libmcd_convenience_la_LIBADD += $(GMODULE_LIBS)
111
123
INCLUDES += \
112
 
        $(GMODULE_CFLAGS) \
113
124
        -DMCD_DEFAULT_FILTER_PLUGIN_DIR=\"@pluginlibdir@\"
114
 
else # ! ENABLE_PLUGINS
115
 
# When plugins are not enabled, libmissioncontrol-server.la is just a copy of
116
 
# the convenience library
 
125
else # ! ENABLE_MCD_PLUGINS
 
126
# When this older plugin API is not enabled, libmissioncontrol-server.la is
 
127
# just a copy of the convenience library
117
128
noinst_LTLIBRARIES += libmissioncontrol-server.la
118
129
libmissioncontrol_server_la_SOURCES =
119
130
libmissioncontrol_server_la_LIBADD = libmcd-convenience.la
120
 
endif # ! ENABLE_PLUGINS
 
131
endif # ! ENABLE_MCD_PLUGINS
121
132
 
122
133
libmcd_convenience_la_SOURCES = \
123
134
        mcd-account.c \
130
141
        mcd-account-manager.c \
131
142
        mcd-account-manager-priv.h \
132
143
        mcd-account-manager-query.c \
 
144
        mcd-account-manager-default.c \
133
145
        mcd-account-priv.h \
134
146
        mcd-client.c \
135
147
        mcd-client-priv.h \
165
177
        mcd-transport.c \
166
178
        mcd-provisioning.c \
167
179
        mcd-provisioning-factory.c \
 
180
        plugin-dispatch-operation.c \
 
181
        plugin-dispatch-operation.h \
 
182
        plugin-loader.c \
 
183
        plugin-loader.h \
 
184
        plugin-request.c \
 
185
        plugin-request.h \
 
186
        plugin-account.c \
 
187
        plugin-account.h \
168
188
        sp_timestamp.h \
169
189
        $(mc_headers)
170
190
 
 
191
if ENABLE_LIBACCOUNTS_SSO
 
192
libmcd_convenience_la_SOURCES += mcd-account-manager-sso.c
 
193
endif
 
194
 
171
195
%-signals-marshal.h: %-signals-marshal.list Makefile
172
196
        glib-genmarshal --header --prefix=_$(subst -,_,$*)_marshal $< > $*-signals-marshal.h
173
197
 
230
254
        $(tools_dir)/glib-signals-marshal-gen.py
231
255
        $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
232
256
 
233
 
_gen/signals-marshal.h: _gen/signals-marshal.list
234
 
        $(GLIB_GENMARSHAL) --header --prefix=_mc_ext_marshal $< > $@
 
257
_gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
 
258
        $(GLIB_GENMARSHAL) --header --prefix=_mcd_ext_marshal $< > $@
235
259
 
236
 
_gen/signals-marshal.c: _gen/signals-marshal.list
 
260
_gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
237
261
        { echo '#include "_gen/signals-marshal.h"' && \
238
 
        $(GLIB_GENMARSHAL) --body --prefix=_mc_ext_marshal $<; } \
 
262
        $(GLIB_GENMARSHAL) --body --prefix=_mcd_ext_marshal $<; } \
239
263
        > $@
240
264
 
241
265
_gen/register-dbus-glib-marshallers-body.h: _gen/mcd.xml \
242
 
        $(tools_dir)/glib-client-marshaller-gen.py
 
266
        $(tools_dir)/glib-client-marshaller-gen.py Makefile.am
243
267
        $(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
244
 
                _mc_ext > $@
 
268
                _mcd_ext > $@
245
269
 
246
270
_gen/enums.h: _gen/mcd.xml $(tools_dir)/c-constants-generator.xsl
247
271
        $(XSLTPROC) $(XSLTPROCFLAGS) \
254
278
# (Currently the only "class" is nmc4, but the new API will need "classes"
255
279
# like account, account-manager, ...)
256
280
 
257
 
_gen/%.xml: $(top_srcdir)/xml/%.xml $(wildcard $(top_srcdir)/xml/*.xml)
 
281
_gen/%.xml: $(top_srcdir)/xml/%.xml $(wildcard $(top_srcdir)/xml/*.xml) Makefile.am
258
282
        $(mkdir_p) _gen
259
283
        $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
260
284
                $< > $@
261
285
 
262
 
_gen/%.xml: %.xml $(wildcard $(top_srcdir)/xml/*.xml)
 
286
_gen/%.xml: %.xml $(wildcard $(top_srcdir)/xml/*.xml) Makefile.am
263
287
        $(mkdir_p) _gen
264
288
        $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
265
289
                $< > $@
276
300
        $(tools_dir)/glib-ginterface-gen.py Makefile.am
277
301
        $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
278
302
                --filename=_gen/svc-$* \
279
 
                --signal-marshal-prefix=_mc_ext \
 
303
                --signal-marshal-prefix=_mcd_ext \
280
304
                --include='<telepathy-glib/dbus.h>' \
281
305
                --include='"_gen/signals-marshal.h"' \
282
306
                --not-implemented-func='tp_dbus_g_method_return_not_implemented' \