1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
xsltproc_with_flags = [xsltproc, '--nonet', '--novalid']
gen_all_xml = custom_target(
'all.xml',
input: [
join_paths(tools_dir, 'identity.xsl'),
join_paths('..', 'all.xml'),
],
output: 'all.xml',
command: xsltproc_with_flags + ['--xinclude', '@INPUT@'],
capture: true,
)
gen_svc = custom_target(
'svc',
input: [
join_paths(tools_dir, 'glib-ginterface-gen.py'),
gen_all_xml,
],
output: [
'svc.h',
'svc-gtk-doc.h',
'svc.c',
],
command: [
python2,
'@INPUT0@',
'--filename=extensions/_gen/svc',
'--signal-marshal-prefix=_idle_ext',
'--include=<telepathy-glib/telepathy-glib.h>',
'--not-implemented-func=tp_dbus_g_method_return_not_implemented',
'--allow-unstable',
'@INPUT1@',
'Idle_Svc_',
],
)
gen_enums_h = custom_target(
'enums.h',
input: [
join_paths(tools_dir, 'c-constants-generator.xsl'),
gen_all_xml,
],
output: 'enums.h',
command: xsltproc_with_flags + ['--stringparam', 'mixed-case-prefix', 'Idle', '@INPUT@'],
capture: true,
)
gen_interfaces_h = custom_target(
'interfaces.h',
input: [
join_paths(tools_dir, 'c-interfaces-generator.xsl'),
gen_all_xml,
],
output: 'interfaces.h',
command: xsltproc_with_flags + ['--stringparam', 'mixed-case-prefix', 'Idle', '@INPUT@'],
capture: true,
)
|