]> git.0d.be Git - empathy.git/blob - extensions/Makefile.am
Add Chan.I.CredentialsStorage to extensions
[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     Debug.xml \
16     Logger.xml \
17     Connection_Interface_Renaming.xml \
18     Authentication_TLS_Certificate.xml \
19     Channel_Interface_Credentials_Storage.xml \
20     Channel_Type_Server_TLS_Connection.xml \
21     $(NULL)
22
23 noinst_LTLIBRARIES = libemp-extensions.la
24
25 libemp_extensions_la_LIBADD = \
26     $(TP_GLIB_LIBS)
27
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 = \
32     extensions.c \
33     extensions-cli.c \
34     extensions.h
35
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 \
41     _gen/enums.h \
42     _gen/gtypes.h \
43     _gen/gtypes-body.h \
44     _gen/interfaces.h \
45     _gen/interfaces-body.h \
46     _gen/cli-misc.h \
47     _gen/cli-misc-body.h \
48     _gen/svc-misc.h \
49     _gen/svc-misc.c
50
51 BUILT_SOURCES = \
52     _gen/all.xml \
53     _gen/misc.xml \
54     $(nodist_libemp_extensions_la_SOURCES) \
55     extensions.html
56
57 CLEANFILES = $(BUILT_SOURCES)
58
59 clean-local:
60         rm -rf _gen
61
62 XSLTPROCFLAGS = --nonet --novalid
63
64 # Generated files which can be generated for all categories simultaneously
65
66 _gen/all.xml: all.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
67         @$(mkdir_p) _gen
68         $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
69
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 \
74                 $< > $@
75
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 \
79                 $< _gen/gtypes Emp
80
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 $< > $@
84
85 _gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
86         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_emp_ext_marshal $< > $@
87
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 $< ; } > $@
91
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 $< \
95                 _emp_ext > $@
96
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 \
100                 Emp \
101                 $< _gen/enums
102
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 $<
107
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.
111
112 _gen/misc.xml: misc.xml $(wildcard *.xml) $(tools_dir)/xincludator.py
113         @$(mkdir_p) _gen
114         $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py $< > $@
115
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 \
119                 --group=misc \
120                 --subclass=TpProxy \
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
125
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' \
134                 --allow-unstable \
135                 $< Emp_Svc_