1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
17 Channel_Interface_Conference.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/signals-marshal.c \
34 _gen/signals-marshal.h \
35 _gen/signals-marshal.list \
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)
55 XSLTPROCFLAGS = --nonet --novalid
57 # Generated files which can be generated for all categories simultaneously
59 _gen/all.xml: all.xml $(wildcard *.xml)
61 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
64 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
65 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
66 --param "allow-undefined-interfaces" "true()" \
67 $(tools_dir)/doc-generator.xsl \
70 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
71 $(top_srcdir)/tools/glib-gtypes-generator.py
72 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
75 _gen/signals-marshal.list: _gen/all.xml \
76 $(tools_dir)/glib-signals-marshal-gen.py
77 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
79 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
80 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
82 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
83 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
84 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
86 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
87 $(tools_dir)/glib-client-marshaller-gen.py
88 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
91 _gen/enums.h: _gen/all.xml \
92 $(tools_dir)/c-constants-gen.py
93 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
97 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
98 $(tools_dir)/glib-interfaces-gen.py
99 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
100 Emp _gen/interfaces-body.h _gen/interfaces.h $<
102 # Generated files which must be generated per "category". Each TpProxy
103 # subclass you want to use with --subclass will need to have its own category,
104 # although you can subdivide further if you want.
106 _gen/misc.xml: misc.xml $(wildcard *.xml)
108 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
111 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
112 $(tools_dir)/glib-client-gen.py
113 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
116 --subclass-assert=TP_IS_PROXY \
117 --iface-quark-prefix=EMP_IFACE_QUARK \
118 --tp-proxy-api=0.7.6 \
119 $< Emp_Cli _gen/cli-misc
121 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
122 $(tools_dir)/glib-ginterface-gen.py
123 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
124 --filename=_gen/svc-misc \
125 --signal-marshal-prefix=_emp_ext \
126 --include='<telepathy-glib/dbus.h>' \
127 --include='"_gen/signals-marshal.h"' \
128 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \