]> git.0d.be Git - empathy.git/blob - extensions/Makefile.am
Removed Channel_Type_File_Transfer.xml from extensions.
[empathy.git] / extensions / Makefile.am
1 tools_dir = $(top_srcdir)/tools
2
3 AM_CFLAGS = \
4     -I$(top_srcdir) \
5     -I$(top_builddir) \
6     $(WARN_CFLAGS) \
7     $(LIBEMPATHY_CFLAGS)
8
9 EXTRA_DIST = \
10     all.xml \
11     generic-types.xml \
12     misc.xml \
13     Channel_Handler.xml \
14     Tube_Handler.xml \
15     Channel_Interface_Tube.xml \
16     Channel_Type_DBus_Tube.xml \
17     Channel_Type_Stream_Tube.xml
18
19 noinst_LTLIBRARIES = libemp-extensions.la
20
21 libemp_extensions_la_LIBADD = \
22     $(TP_GLIB_LIBS)
23
24 # The client-specific parts are built into a separate .o file, so the linker
25 # can discard them when linking services. The service-specific parts are
26 # in svc-*.c, so we don't need an extensions-svc.c.
27 libemp_extensions_la_SOURCES = \
28     extensions.c \
29     extensions-cli.c \
30     extensions.h
31
32 nodist_libemp_extensions_la_SOURCES = \
33     _gen/signals-marshal.c \
34     _gen/signals-marshal.h \
35     _gen/signals-marshal.list \
36     _gen/register-dbus-glib-marshallers-body.h \
37     _gen/enums.h \
38     _gen/gtypes.h \
39     _gen/gtypes-body.h \
40     _gen/interfaces.h \
41     _gen/interfaces-body.h \
42     _gen/cli-misc.h \
43     _gen/cli-misc-body.h \
44     _gen/svc-misc.h \
45     _gen/svc-misc.c
46
47 BUILT_SOURCES = \
48     _gen/all.xml \
49     _gen/misc.xml \
50     $(nodist_libemp_extensions_la_SOURCES) \
51     extensions.html
52
53 CLEANFILES = $(BUILT_SOURCES)
54
55 XSLTPROCFLAGS = --nonet --novalid
56
57 # Generated files which can be generated for all categories simultaneously
58
59 _gen/all.xml: all.xml $(wildcard *.xml)
60         $(mkdir_p) _gen
61         $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
62                 $< > $@
63
64 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
65         $(XSLTPROC) $(XSLTPROCFLAGS) \
66                 --param "allow-undefined-interfaces" "true()" \
67                 $(tools_dir)/doc-generator.xsl \
68                 $< > $@
69
70 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
71         $(top_srcdir)/tools/glib-gtypes-generator.py
72         $(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
73                 $< _gen/gtypes Emp
74
75 _gen/signals-marshal.list: _gen/all.xml \
76         $(tools_dir)/glib-signals-marshal-gen.py
77         $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
78
79 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
80         $(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
81
82 _gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
83         { echo '#include "_gen/signals-marshal.h"' && \
84         $(GLIB_GENMARSHAL) --body --prefix=_emp_ext_marshal $< ; } > $@
85
86 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
87         $(tools_dir)/glib-client-marshaller-gen.py
88         $(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
89                 _emp_ext > $@
90
91 _gen/enums.h: _gen/all.xml \
92         $(tools_dir)/c-constants-gen.py
93         $(PYTHON) $(tools_dir)/c-constants-gen.py \
94                 Emp \
95                 $< > $@
96
97 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
98         $(tools_dir)/glib-interfaces-gen.py
99         $(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
100                 Emp _gen/interfaces-body.h _gen/interfaces.h $<
101
102 # Generated files which must be generated per "category". Each TpProxy
103 # subclass you want to use with --subclass will need to have its own category,
104 # although you can subdivide further if you want.
105
106 _gen/misc.xml: misc.xml $(wildcard *.xml)
107         $(mkdir_p) _gen
108         $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
109                 $< > $@
110
111 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
112         $(tools_dir)/glib-client-gen.py
113         $(PYTHON) $(tools_dir)/glib-client-gen.py \
114                 --group=misc \
115                 --subclass=TpProxy \
116                 --subclass-assert=TP_IS_PROXY \
117                 --iface-quark-prefix=EMP_IFACE_QUARK \
118                 --tp-proxy-api=0.7.6 \
119                 $< Emp_Cli _gen/cli-misc
120
121 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
122         $(tools_dir)/glib-ginterface-gen.py
123         $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
124                 --filename=_gen/svc-misc \
125                 --signal-marshal-prefix=_emp_ext \
126                 --include='<telepathy-glib/dbus.h>' \
127                 --include='"_gen/signals-marshal.h"' \
128                 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \
129                 --allow-unstable \
130                 $< Emp_Svc_