1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
16 Channel_Interface_Credentials_Storage.xml \
19 noinst_LTLIBRARIES = libemp-extensions.la
21 libemp_extensions_la_LIBADD = \
24 # The client-specific parts are built into a separate .o file, so the linker
25 # can discard them when linking services. The service-specific parts are
26 # in svc-*.c, so we don't need an extensions-svc.c.
27 libemp_extensions_la_SOURCES = \
32 nodist_libemp_extensions_la_SOURCES = \
33 _gen/register-dbus-glib-marshallers-body.h \
38 _gen/interfaces-body.h \
40 _gen/cli-misc-body.h \
47 $(nodist_libemp_extensions_la_SOURCES) \
50 CLEANFILES = $(BUILT_SOURCES)
55 XSLTPROCFLAGS = --nonet --novalid
57 # Generated files which can be generated for all categories simultaneously
59 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
61 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
63 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
64 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
65 --param "allow-undefined-interfaces" "true()" \
66 $(tools_dir)/doc-generator.xsl \
69 _gen/gt%pes.h _gen/gt%pes-body.h: _gen/all.xml \
70 $(top_srcdir)/tools/glib-gtypes-generator.py
71 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
74 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
75 $(tools_dir)/glib-client-marshaller-gen.py
76 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
79 _gen/enums.h: _gen/all.xml \
80 $(tools_dir)/c-constants-gen.py
81 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
85 _gen/int%rfaces-body.h _gen/int%rfaces.h: _gen/all.xml \
86 $(tools_dir)/glib-interfaces-gen.py
87 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
88 Emp _gen/interfaces-body.h _gen/interfaces.h $<
90 # Generated files which must be generated per "category". Each TpProxy
91 # subclass you want to use with --subclass will need to have its own category,
92 # although you can subdivide further if you want.
94 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
96 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
98 _gen/cli-misc-body.h: _gen/cli-misc.h
100 _gen/cli-misc.h: _gen/misc.xml \
101 $(tools_dir)/glib-client-gen.py
102 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
105 --subclass-assert=TP_IS_PROXY \
106 --iface-quark-prefix=EMP_IFACE_QUARK \
107 --tp-proxy-api=0.10.0 \
108 $< Emp_Cli _gen/cli-misc
110 # There is no need to execute glib-ginterface-gen.py twice because it
111 # generates both the .c and .h files in one shot. Therefore, merely
112 # having one of them (say the .c) depend on the other (say the .h) is
115 # Moreover, running it twice breaks parallel builds because one
116 # glib-ginterface-gen.py process steps on the other.
118 _gen/svc-misc.c: _gen/svc-misc.h
120 _gen/svc-misc.h: _gen/misc.xml \
121 $(tools_dir)/glib-ginterface-gen.py
122 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
123 --filename=_gen/svc-misc \
124 --signal-marshal-prefix=_emp_ext \
125 --include='<telepathy-glib/telepathy-glib.h>' \
126 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \