5
if ENABLE_SHARED_LIBRARY
6
lib_LTLIBRARIES = libtelepathy-yell.la
7
pkgconfigdir = ${libdir}/pkgconfig
8
pkgconfig_DATA = telepathy-yell.pc
9
tpyincludedir=$(includedir)/telepathy-1.0/telepathy-yell
10
genincludedir=$(tpyincludedir)/_gen
12
noinst_LTLIBRARIES = libtelepathy-yell.la
15
libtelepathy_yell_la_LIBADD = $(ALL_LIBS)
17
libtelepathy_yell_la_SOURCES = \
21
base-media-call-content.c \
22
base-media-call-stream.c \
26
call-stream-endpoint.c \
27
call-content-codec-offer.c \
34
_gen/signals-marshal.h \
35
_gen/register-dbus-glib-marshallers-body.h \
37
_gen/interfaces-body.h \
38
_gen/cli-call-body.h \
39
_gen/signals-marshal.c \
54
base-media-call-stream.h \
55
base-media-call-content.h \
58
call-content-codec-offer.h \
60
call-stream-endpoint.h \
69
if ENABLE_SHARED_LIBRARY
70
tpyinclude_HEADERS = \
72
geninclude_HEADERS = \
76
nodist_libtelepathy_yell_la_SOURCES = \
84
_gen/signals-marshal.list \
89
CLEANFILES = $(BUILT_SOURCES)
92
-DG_LOG_DOMAIN=\"tp-yell\" \
93
-I$(top_srcdir) -I$(top_builddir) \
108
$(pkginclude_HEADERS) \
109
$(libtelepathy_yell_la_SOURCES)
110
include $(top_srcdir)/tools/check-coding-style.mk
112
check-local: check-coding-style
114
### Code generation from here on down
116
tools_dir = $(top_srcdir)/tools
118
XSLTPROCFLAGS = --nonet --novalid
120
# Generated files which can be generated for all categories simultaneously
122
extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl Makefile.am
123
$(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
124
--param 'allow-undefined-interfaces' 'true()' \
125
$(tools_dir)/doc-generator.xsl \
128
_gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
129
$(top_srcdir)/tools/glib-gtypes-generator.py Makefile.am
130
$(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
133
_gen/signals-marshal.list: _gen/all.xml \
134
$(tools_dir)/glib-signals-marshal-gen.py Makefile.am
135
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
137
_gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
138
$(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_tpy_marshal $< > $@
140
_gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
141
$(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
142
$(GLIB_GENMARSHAL) --body --prefix=_tpy_marshal $< ; } > $@
144
_gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
145
$(tools_dir)/glib-client-marshaller-gen.py Makefile.am
146
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
149
_gen/enums.h: _gen/all.xml $(tools_dir)/c-constants-gen.py Makefile.am
150
$(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py Tpy $< _gen/enums
152
_gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
153
$(tools_dir)/glib-interfaces-gen.py Makefile.am
154
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
155
Tpy _gen/interfaces-body.h _gen/interfaces.h $<
157
# Generated files which must be generated per "category". Each TpProxy
158
# subclass you want to use with --subclass will need to have its own category,
159
# although you can subdivide further if you want.
161
_gen/%.xml: %.xml $(wildcard ../spec/*.xml)
163
$(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
166
_gen/cli-%-body.h _gen/cli-%.h: _gen/%.xml \
167
$(tools_dir)/glib-client-gen.py Makefile.am
171
subclass="TpProxy"; \
172
assert="TP_IS_PROXY"; \
175
$(PYTHON) $(tools_dir)/glib-client-gen.py \
176
--group=`echo $* | tr x- x_` \
177
--subclass=$$subclass \
178
--subclass-assert=$$assert \
179
--tp-proxy-api=0.7.6 \
180
--iface-quark-prefix=TPY_IFACE_QUARK \
181
$< Tpy_Cli _gen/cli-$*
183
_gen/svc-%.c _gen/svc-%.h: _gen/%.xml \
184
$(tools_dir)/glib-ginterface-gen.py Makefile.am
185
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
186
--filename=_gen/svc-$* \
187
--signal-marshal-prefix=_tpy \
188
--include='<telepathy-glib/dbus.h>' \
189
--include='"_gen/signals-marshal.h"' \
190
--not-implemented-func='tp_dbus_g_method_return_not_implemented' \