1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
16 Connection_Interface_Renaming.xml \
17 Channel_Interface_Credentials_Storage.xml \
18 Channel_Type_Server_TLS_Connection.xml \
22 noinst_LTLIBRARIES = libemp-extensions.la
24 libemp_extensions_la_LIBADD = \
27 # The client-specific parts are built into a separate .o file, so the linker
28 # can discard them when linking services. The service-specific parts are
29 # in svc-*.c, so we don't need an extensions-svc.c.
30 libemp_extensions_la_SOURCES = \
35 nodist_libemp_extensions_la_SOURCES = \
36 _gen/register-dbus-glib-marshallers-body.h \
41 _gen/interfaces-body.h \
43 _gen/cli-misc-body.h \
50 $(nodist_libemp_extensions_la_SOURCES) \
53 CLEANFILES = $(BUILT_SOURCES)
58 XSLTPROCFLAGS = --nonet --novalid
60 # Generated files which can be generated for all categories simultaneously
62 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
64 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
66 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
67 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
68 --param "allow-undefined-interfaces" "true()" \
69 $(tools_dir)/doc-generator.xsl \
72 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
73 $(top_srcdir)/tools/glib-gtypes-generator.py
74 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
77 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
78 $(tools_dir)/glib-client-marshaller-gen.py
79 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
82 _gen/enums.h: _gen/all.xml \
83 $(tools_dir)/c-constants-gen.py
84 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
88 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
89 $(tools_dir)/glib-interfaces-gen.py
90 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
91 Emp _gen/interfaces-body.h _gen/interfaces.h $<
93 # Generated files which must be generated per "category". Each TpProxy
94 # subclass you want to use with --subclass will need to have its own category,
95 # although you can subdivide further if you want.
97 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
99 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
101 _gen/cli-misc-body.h: _gen/cli-misc.h
103 _gen/cli-misc.h: _gen/misc.xml \
104 $(tools_dir)/glib-client-gen.py
105 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
108 --subclass-assert=TP_IS_PROXY \
109 --iface-quark-prefix=EMP_IFACE_QUARK \
110 --tp-proxy-api=0.10.0 \
111 $< Emp_Cli _gen/cli-misc
113 # There is no need to execute glib-ginterface-gen.py twice because it
114 # generates both the .c and .h files in one shot. Therefore, merely
115 # having one of them (say the .c) depend on the other (say the .h) is
118 # Moreover, running it twice breaks parallel builds because one
119 # glib-ginterface-gen.py process steps on the other.
121 _gen/svc-misc.c: _gen/svc-misc.h
123 _gen/svc-misc.h: _gen/misc.xml \
124 $(tools_dir)/glib-ginterface-gen.py
125 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
126 --filename=_gen/svc-misc \
127 --signal-marshal-prefix=_emp_ext \
128 --include='<telepathy-glib/telepathy-glib.h>' \
129 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \