1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
17 Connection_Interface_Renaming.xml \
18 Authentication_TLS_Certificate.xml \
19 Channel_Interface_Credentials_Storage.xml \
20 Channel_Type_Server_TLS_Connection.xml \
24 noinst_LTLIBRARIES = libemp-extensions.la
26 libemp_extensions_la_LIBADD = \
29 # The client-specific parts are built into a separate .o file, so the linker
30 # can discard them when linking services. The service-specific parts are
31 # in svc-*.c, so we don't need an extensions-svc.c.
32 libemp_extensions_la_SOURCES = \
37 nodist_libemp_extensions_la_SOURCES = \
38 _gen/signals-marshal.c \
39 _gen/signals-marshal.h \
40 _gen/signals-marshal.list \
41 _gen/register-dbus-glib-marshallers-body.h \
46 _gen/interfaces-body.h \
48 _gen/cli-misc-body.h \
55 $(nodist_libemp_extensions_la_SOURCES) \
58 CLEANFILES = $(BUILT_SOURCES)
63 XSLTPROCFLAGS = --nonet --novalid
65 # Generated files which can be generated for all categories simultaneously
67 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
69 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
71 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
72 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
73 --param "allow-undefined-interfaces" "true()" \
74 $(tools_dir)/doc-generator.xsl \
77 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
78 $(top_srcdir)/tools/glib-gtypes-generator.py
79 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
82 _gen/signals-marshal.list: _gen/all.xml \
83 $(tools_dir)/glib-signals-marshal-gen.py
84 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
86 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
87 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
89 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
90 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
91 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
93 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
94 $(tools_dir)/glib-client-marshaller-gen.py
95 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
98 _gen/enums.h: _gen/all.xml \
99 $(tools_dir)/c-constants-gen.py
100 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
104 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
105 $(tools_dir)/glib-interfaces-gen.py
106 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
107 Emp _gen/interfaces-body.h _gen/interfaces.h $<
109 # Generated files which must be generated per "category". Each TpProxy
110 # subclass you want to use with --subclass will need to have its own category,
111 # although you can subdivide further if you want.
113 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
115 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
117 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
118 $(tools_dir)/glib-client-gen.py
119 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
122 --subclass-assert=TP_IS_PROXY \
123 --iface-quark-prefix=EMP_IFACE_QUARK \
124 --tp-proxy-api=0.10.0 \
125 $< Emp_Cli _gen/cli-misc
127 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
128 $(tools_dir)/glib-ginterface-gen.py
129 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
130 --filename=_gen/svc-misc \
131 --signal-marshal-prefix=_emp_ext \
132 --include='<telepathy-glib/dbus.h>' \
133 --include='"_gen/signals-marshal.h"' \
134 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \