-
Notifications
You must be signed in to change notification settings - Fork 711
/
meson.build
76 lines (71 loc) · 2.44 KB
/
meson.build
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
if progxsltproc.found() and stylesheets_path != ''
xml1 = configure_file(
configuration: {
'sysconfdir': absolute_sysconfdir,
'docdir': absolute_docdir,
'libdir': absolute_libdir / '',
'DYN_LIB_EXT': '.' + extension_of_libraries,
'DEFAULT_PCSC_PROVIDER': conf.get_unquoted('DEFAULT_PCSC_PROVIDER'),
'PROFILE_DIR_DEFAULT': (host_machine.system() == 'windows' or host_machine.system() == 'cygwin')?
'obtained from windows registers' : absolute_pkgdir,
'DEFAULT_SM_MODULE': conf.get_unquoted('DEFAULT_SM_MODULE')
},
input: 'opensc.conf.5.xml.in',
output: 'opensc.conf.5.xml'
)
custom_target(
command: [progxsltproc,
'--nonet',
'--path', meson.project_source_root() / 'doc' + ':' + stylesheets_path / 'manpages',
'--xinclude',
'-o', '@OUTPUT@',
'man.xsl',
'@INPUT@'
],
input: xml1,
output: modfs.stem(xml1),
build_by_default: get_option('man'),
install: get_option('man'),
install_dir: get_option('mandir') / 'man5'
)
xml2 = configure_file(
configuration: {'pkgdatadir': absolute_pkgdir},
input: 'pkcs15-profile.5.xml.in',
output: 'pkcs15-profile.5.xml'
)
custom_target(
command: [progxsltproc,
'--nonet',
'--path', meson.project_source_root() / 'doc' + ':' + stylesheets_path / 'manpages',
'--xinclude',
'-o', '@OUTPUT@',
'man.xsl',
'@INPUT@'
],
input: xml2,
output: modfs.stem(xml2),
build_by_default: get_option('man'),
install: get_option('man'),
install_dir: get_option('mandir') / 'man5'
)
custom_target(
command: [progxsltproc,
'--nonet',
'--path', meson.project_build_root() / 'doc' / 'files' + ':' +
meson.project_source_root() / 'doc' + ':' +
stylesheets_path / 'html',
'--xinclude',
'-o', '@OUTPUT@',
'html.xsl',
'@INPUT@'
],
input: 'files.xml',
output: 'files.html',
depend_files: [xml1, xml2],
build_by_default: get_option('doc'),
install: get_option('doc'),
install_dir: absolute_docdir
)
unset_variable('xml1')
unset_variable('xml2')
endif