1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
16 Channel_Interface_Conference.xml
18 noinst_LTLIBRARIES = libemp-extensions.la
20 libemp_extensions_la_LIBADD = \
23 # The client-specific parts are built into a separate .o file, so the linker
24 # can discard them when linking services. The service-specific parts are
25 # in svc-*.c, so we don't need an extensions-svc.c.
26 libemp_extensions_la_SOURCES = \
31 nodist_libemp_extensions_la_SOURCES = \
32 _gen/signals-marshal.c \
33 _gen/signals-marshal.h \
34 _gen/signals-marshal.list \
35 _gen/register-dbus-glib-marshallers-body.h \
40 _gen/interfaces-body.h \
42 _gen/cli-misc-body.h \
49 $(nodist_libemp_extensions_la_SOURCES) \
52 CLEANFILES = $(BUILT_SOURCES)
54 XSLTPROCFLAGS = --nonet --novalid
56 # Generated files which can be generated for all categories simultaneously
58 _gen/all.xml: all.xml $(wildcard *.xml)
60 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
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/gtypes.h _gen/gtypes-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/signals-marshal.list: _gen/all.xml \
75 $(tools_dir)/glib-signals-marshal-gen.py
76 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
78 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
79 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
81 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
82 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
83 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
85 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
86 $(tools_dir)/glib-client-marshaller-gen.py
87 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
90 _gen/enums.h: _gen/all.xml \
91 $(tools_dir)/c-constants-gen.py
92 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
96 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
97 $(tools_dir)/glib-interfaces-gen.py
98 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
99 Emp _gen/interfaces-body.h _gen/interfaces.h $<
101 # Generated files which must be generated per "category". Each TpProxy
102 # subclass you want to use with --subclass will need to have its own category,
103 # although you can subdivide further if you want.
105 _gen/misc.xml: misc.xml $(wildcard *.xml)
107 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
110 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
111 $(tools_dir)/glib-client-gen.py
112 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
115 --subclass-assert=TP_IS_PROXY \
116 --iface-quark-prefix=EMP_IFACE_QUARK \
117 --tp-proxy-api=0.7.6 \
118 $< Emp_Cli _gen/cli-misc
120 _gen/svc-misc.c _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/dbus.h>' \
126 --include='"_gen/signals-marshal.h"' \
127 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \