1 tools_dir = $(top_srcdir)/tools
17 noinst_LTLIBRARIES = libemp-extensions.la
19 libemp_extensions_la_LIBADD = \
22 # The client-specific parts are built into a separate .o file, so the linker
23 # can discard them when linking services. The service-specific parts are
24 # in svc-*.c, so we don't need an extensions-svc.c.
25 libemp_extensions_la_SOURCES = \
30 nodist_libemp_extensions_la_SOURCES = \
31 _gen/signals-marshal.c \
32 _gen/signals-marshal.h \
33 _gen/signals-marshal.list \
34 _gen/register-dbus-glib-marshallers-body.h \
39 _gen/interfaces-body.h \
41 _gen/cli-misc-body.h \
48 $(nodist_libemp_extensions_la_SOURCES) \
51 CLEANFILES = $(BUILT_SOURCES)
53 XSLTPROCFLAGS = --nonet --novalid
55 # Generated files which can be generated for all categories simultaneously
57 _gen/all.xml: all.xml $(wildcard *.xml)
59 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
62 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
63 $(XSLTPROC) $(XSLTPROCFLAGS) \
64 --param "allow-undefined-interfaces" "true()" \
65 $(tools_dir)/doc-generator.xsl \
68 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
69 $(top_srcdir)/tools/glib-gtypes-generator.py
70 $(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
73 _gen/signals-marshal.list: _gen/all.xml \
74 $(tools_dir)/glib-signals-marshal-gen.py
75 $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
77 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
78 $(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
80 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
81 { echo '#include "_gen/signals-marshal.h"' && \
82 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
84 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
85 $(tools_dir)/glib-client-marshaller-gen.py
86 $(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
89 _gen/enums.h: _gen/all.xml \
90 $(tools_dir)/c-constants-gen.py
91 $(PYTHON) $(tools_dir)/c-constants-gen.py \
95 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
96 $(tools_dir)/glib-interfaces-gen.py
97 $(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
98 Emp _gen/interfaces-body.h _gen/interfaces.h $<
100 # Generated files which must be generated per "category". Each TpProxy
101 # subclass you want to use with --subclass will need to have its own category,
102 # although you can subdivide further if you want.
104 _gen/misc.xml: misc.xml $(wildcard *.xml)
106 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
109 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
110 $(tools_dir)/glib-client-gen.py
111 $(PYTHON) $(tools_dir)/glib-client-gen.py \
114 --subclass-assert=TP_IS_PROXY \
115 --iface-quark-prefix=EMP_IFACE_QUARK \
116 --tp-proxy-api=0.7.6 \
117 $< Emp_Cli _gen/cli-misc
119 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
120 $(tools_dir)/glib-ginterface-gen.py
121 $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
122 --filename=_gen/svc-misc \
123 --signal-marshal-prefix=_emp_ext \
124 --include='<telepathy-glib/dbus.h>' \
125 --include='"_gen/signals-marshal.h"' \
126 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \