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 \
23 noinst_LTLIBRARIES = libemp-extensions.la
25 libemp_extensions_la_LIBADD = \
28 # The client-specific parts are built into a separate .o file, so the linker
29 # can discard them when linking services. The service-specific parts are
30 # in svc-*.c, so we don't need an extensions-svc.c.
31 libemp_extensions_la_SOURCES = \
36 nodist_libemp_extensions_la_SOURCES = \
37 _gen/signals-marshal.c \
38 _gen/signals-marshal.h \
39 _gen/signals-marshal.list \
40 _gen/register-dbus-glib-marshallers-body.h \
45 _gen/interfaces-body.h \
47 _gen/cli-misc-body.h \
54 $(nodist_libemp_extensions_la_SOURCES) \
57 CLEANFILES = $(BUILT_SOURCES)
62 XSLTPROCFLAGS = --nonet --novalid
64 # Generated files which can be generated for all categories simultaneously
66 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
68 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
70 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
71 $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
72 --param "allow-undefined-interfaces" "true()" \
73 $(tools_dir)/doc-generator.xsl \
76 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
77 $(top_srcdir)/tools/glib-gtypes-generator.py
78 $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
81 _gen/signals-marshal.list: _gen/all.xml \
82 $(tools_dir)/glib-signals-marshal-gen.py
83 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
85 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
86 $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
88 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
89 $(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
90 $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
92 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
93 $(tools_dir)/glib-client-marshaller-gen.py
94 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
97 _gen/enums.h: _gen/all.xml \
98 $(tools_dir)/c-constants-gen.py
99 $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
103 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
104 $(tools_dir)/glib-interfaces-gen.py
105 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
106 Emp _gen/interfaces-body.h _gen/interfaces.h $<
108 # Generated files which must be generated per "category". Each TpProxy
109 # subclass you want to use with --subclass will need to have its own category,
110 # although you can subdivide further if you want.
112 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
114 $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
116 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
117 $(tools_dir)/glib-client-gen.py
118 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
121 --subclass-assert=TP_IS_PROXY \
122 --iface-quark-prefix=EMP_IFACE_QUARK \
123 --tp-proxy-api=0.10.0 \
124 $< Emp_Cli _gen/cli-misc
126 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
127 $(tools_dir)/glib-ginterface-gen.py
128 $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
129 --filename=_gen/svc-misc \
130 --signal-marshal-prefix=_emp_ext \
131 --include='<telepathy-glib/dbus.h>' \
132 --include='"_gen/signals-marshal.h"' \
133 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \