1 tools_dir = $(top_srcdir)/tools
16 Channel_Type_File_Transfer.xml \
17 Channel_Interface_Tube.xml \
18 Channel_Type_DBus_Tube.xml \
19 Channel_Type_Stream_Tube.xml
21 noinst_LTLIBRARIES = libemp-extensions.la
23 libemp_extensions_la_LIBADD = \
26 # The client-specific parts are built into a separate .o file, so the linker
27 # can discard them when linking services. The service-specific parts are
28 # in svc-*.c, so we don't need an extensions-svc.c.
29 libemp_extensions_la_SOURCES = \
34 nodist_libemp_extensions_la_SOURCES = \
35 _gen/signals-marshal.c \
36 _gen/signals-marshal.h \
37 _gen/signals-marshal.list \
38 _gen/register-dbus-glib-marshallers-body.h \
43 _gen/interfaces-body.h \
45 _gen/cli-misc-body.h \
52 $(nodist_libemp_extensions_la_SOURCES) \
55 CLEANFILES = $(BUILT_SOURCES)
57 XSLTPROCFLAGS = --nonet --novalid
59 # Generated files which can be generated for all categories simultaneously
61 _gen/all.xml: all.xml $(wildcard *.xml)
63 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
66 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
67 $(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 $(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
77 _gen/signals-marshal.list: _gen/all.xml \
78 $(tools_dir)/glib-signals-marshal-gen.py
79 $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
81 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
82 $(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
84 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
85 { echo '#include "_gen/signals-marshal.h"' && \
86 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
88 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
89 $(tools_dir)/glib-client-marshaller-gen.py
90 $(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
93 _gen/enums.h: _gen/all.xml \
94 $(tools_dir)/c-constants-gen.py
95 $(PYTHON) $(tools_dir)/c-constants-gen.py \
99 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
100 $(tools_dir)/glib-interfaces-gen.py
101 $(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
102 Emp _gen/interfaces-body.h _gen/interfaces.h $<
104 # Generated files which must be generated per "category". Each TpProxy
105 # subclass you want to use with --subclass will need to have its own category,
106 # although you can subdivide further if you want.
108 _gen/misc.xml: misc.xml $(wildcard *.xml)
110 $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
113 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
114 $(tools_dir)/glib-client-gen.py
115 $(PYTHON) $(tools_dir)/glib-client-gen.py \
118 --subclass-assert=TP_IS_PROXY \
119 --iface-quark-prefix=EMP_IFACE_QUARK \
120 --tp-proxy-api=0.7.6 \
121 $< Emp_Cli _gen/cli-misc
123 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
124 $(tools_dir)/glib-ginterface-gen.py
125 $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
126 --filename=_gen/svc-misc \
127 --signal-marshal-prefix=_emp_ext \
128 --include='<telepathy-glib/dbus.h>' \
129 --include='"_gen/signals-marshal.h"' \
130 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \