1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
16 Channel_Interface_Conference.xml \
20 noinst_LTLIBRARIES = libemp-extensions.la
22 libemp_extensions_la_LIBADD = \
25 # The client-specific parts are built into a separate .o file, so the linker
26 # can discard them when linking services. The service-specific parts are
27 # in svc-*.c, so we don't need an extensions-svc.c.
28 libemp_extensions_la_SOURCES = \
33 nodist_libemp_extensions_la_SOURCES = \
34 _gen/signals-marshal.c \
35 _gen/signals-marshal.h \
36 _gen/signals-marshal.list \
37 _gen/register-dbus-glib-marshallers-body.h \
42 _gen/interfaces-body.h \
44 _gen/cli-misc-body.h \
51 $(nodist_libemp_extensions_la_SOURCES) \
54 CLEANFILES = $(BUILT_SOURCES)
56 XSLTPROCFLAGS = --nonet --novalid
58 # Generated files which can be generated for all categories simultaneously
60 _gen/all.xml: all.xml $(wildcard *.xml)
62 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
65 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
66 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
67 --param "allow-undefined-interfaces" "true()" \
68 $(tools_dir)/doc-generator.xsl \
71 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
72 $(top_srcdir)/tools/glib-gtypes-generator.py
73 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
76 _gen/signals-marshal.list: _gen/all.xml \
77 $(tools_dir)/glib-signals-marshal-gen.py
78 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
80 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
81 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
83 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
84 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
85 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
87 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
88 $(tools_dir)/glib-client-marshaller-gen.py
89 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
92 _gen/enums.h: _gen/all.xml \
93 $(tools_dir)/c-constants-gen.py
94 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
98 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
99 $(tools_dir)/glib-interfaces-gen.py
100 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
101 Emp _gen/interfaces-body.h _gen/interfaces.h $<
103 # Generated files which must be generated per "category". Each TpProxy
104 # subclass you want to use with --subclass will need to have its own category,
105 # although you can subdivide further if you want.
107 _gen/misc.xml: misc.xml $(wildcard *.xml)
109 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
112 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
113 $(tools_dir)/glib-client-gen.py
114 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
117 --subclass-assert=TP_IS_PROXY \
118 --iface-quark-prefix=EMP_IFACE_QUARK \
119 --tp-proxy-api=0.10.0 \
120 $< Emp_Cli _gen/cli-misc
122 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
123 $(tools_dir)/glib-ginterface-gen.py
124 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
125 --filename=_gen/svc-misc \
126 --signal-marshal-prefix=_emp_ext \
127 --include='<telepathy-glib/dbus.h>' \
128 --include='"_gen/signals-marshal.h"' \
129 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \