]> git.0d.be Git - empathy.git/blob - extensions/Makefile.am
log-window: escape the body of the message
[empathy.git] / extensions / Makefile.am
1 tools_dir = $(top_srcdir)/tools
2
3 AM_CPPFLAGS = $(DISABLE_DEPRECATED)
4
5 AM_CFLAGS = \
6     -I$(top_srcdir) \
7     -I$(top_builddir) \
8     $(WARN_CFLAGS) \
9     $(EMPATHY_CFLAGS)
10
11 EXTRA_DIST = \
12     all.xml \
13     generic-types.xml \
14     misc.xml \
15     Logger.xml \
16     Connection_Interface_Renaming.xml \
17     Channel_Interface_Credentials_Storage.xml \
18     Channel_Type_Server_TLS_Connection.xml \
19     Chat_Manager.xml \
20     $(NULL)
21
22 noinst_LTLIBRARIES = libemp-extensions.la
23
24 libemp_extensions_la_LIBADD = \
25     $(TP_GLIB_LIBS)
26
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 = \
31     extensions.c \
32     extensions-cli.c \
33     extensions.h
34
35 nodist_libemp_extensions_la_SOURCES = \
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 clean-local:
56         rm -rf _gen
57
58 XSLTPROCFLAGS = --nonet --novalid
59
60 # Generated files which can be generated for all categories simultaneously
61
62 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
63         @$(mkdir_p) _gen
64         $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
65
66 extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
67         $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
68                 --param "allow-undefined-interfaces" "true()" \
69                 $(tools_dir)/doc-generator.xsl \
70                 $< > $@
71
72 _gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
73         $(top_srcdir)/tools/glib-gtypes-generator.py
74         $(AM_V_GEN)$(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
75                 $< _gen/gtypes Emp
76
77 _gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
78         $(tools_dir)/glib-client-marshaller-gen.py
79         $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
80                 _emp_ext > $@
81
82 _gen/enums.h: _gen/all.xml \
83         $(tools_dir)/c-constants-gen.py
84         $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py \
85                 Emp \
86                 $< _gen/enums
87
88 _gen/interfaces-body.h _gen/interfaces.h: _gen/all.xml \
89         $(tools_dir)/glib-interfaces-gen.py
90         $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
91                 Emp _gen/interfaces-body.h _gen/interfaces.h $<
92
93 # Generated files which must be generated per "category". Each TpProxy
94 # subclass you want to use with --subclass will need to have its own category,
95 # although you can subdivide further if you want.
96
97 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
98         @$(mkdir_p) _gen
99         $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
100
101 _gen/cli-misc-body.h _gen/cli-misc.h: _gen/misc.xml \
102         $(tools_dir)/glib-client-gen.py
103         $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-client-gen.py \
104                 --group=misc \
105                 --subclass=TpProxy \
106                 --subclass-assert=TP_IS_PROXY \
107                 --iface-quark-prefix=EMP_IFACE_QUARK \
108                 --tp-proxy-api=0.10.0 \
109                 $< Emp_Cli _gen/cli-misc
110
111 _gen/svc-misc.c _gen/svc-misc.h: _gen/misc.xml \
112         $(tools_dir)/glib-ginterface-gen.py
113         $(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
114                 --filename=_gen/svc-misc \
115                 --signal-marshal-prefix=_emp_ext \
116                 --include='<telepathy-glib/telepathy-glib.h>' \
117                 --not-implemented-func='tp_dbus_g_method_return_not_implemented' \
118                 --allow-unstable \
119                 $< Emp_Svc_