1 tools_dir = $(top_srcdir)/tools
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
16 Connection_Interface_Renaming.xml \
17 Channel_Interface_Credentials_Storage.xml \
18 Channel_Type_Server_TLS_Connection.xml \
22 noinst_LTLIBRARIES = libemp-extensions.la
24 libemp_extensions_la_LIBADD = \
27 # The client-specific parts are built into a separate .o file, so the linker
28 # can discard them when linking services. The service-specific parts are
29 # in svc-*.c, so we don't need an extensions-svc.c.
30 libemp_extensions_la_SOURCES = \
35 nodist_libemp_extensions_la_SOURCES = \
36 _gen/signals-marshal.c \
37 _gen/signals-marshal.h \
38 _gen/signals-marshal.list \
39 _gen/register-dbus-glib-marshallers-body.h \
44 _gen/interfaces-body.h \
46 _gen/cli-misc-body.h \
53 $(nodist_libemp_extensions_la_SOURCES) \
56 CLEANFILES = $(BUILT_SOURCES)
61 XSLTPROCFLAGS = --nonet --novalid
63 # Generated files which can be generated for all categories simultaneously
65 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
67 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
69 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
70 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
71 --param "allow-undefined-interfaces" "true()" \
72 $(tools_dir)/doc-generator.xsl \
75 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
76 $(top_srcdir)/tools/glib-gtypes-generator.py
77 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
80 _gen/signals-marshal.list: _gen/all.xml \
81 $(tools_dir)/glib-signals-marshal-gen.py
82 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
84 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
85 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
87 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
88 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
89 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
91 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
92 $(tools_dir)/glib-client-marshaller-gen.py
93 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
96 _gen/enums.h: _gen/all.xml \
97 $(tools_dir)/c-constants-gen.py
98 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
102 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
103 $(tools_dir)/glib-interfaces-gen.py
104 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
105 Emp _gen/interfaces-body.h _gen/interfaces.h $<
107 # Generated files which must be generated per "category". Each TpProxy
108 # subclass you want to use with --subclass will need to have its own category,
109 # although you can subdivide further if you want.
111 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
113 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
115 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
116 $(tools_dir)/glib-client-gen.py
117 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
120 --subclass-assert=TP_IS_PROXY \
121 --iface-quark-prefix=EMP_IFACE_QUARK \
122 --tp-proxy-api=0.10.0 \
123 $< Emp_Cli _gen/cli-misc
125 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
126 $(tools_dir)/glib-ginterface-gen.py
127 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
128 --filename=_gen/svc-misc \
129 --signal-marshal-prefix=_emp_ext \
130 --include='<telepathy-glib/dbus.h>' \
131 --include='"_gen/signals-marshal.h"' \
132 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \