blob: 49fbf2c584870fd2b0d363e382c8bd980d67ee25 (
plain)
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
|
# file : xsd/buildfile
# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
import libs = libxsd-frontend%lib{xsd-frontend}
import libs += libcutl%lib{cutl}
import libs += libxerces-c%lib{xerces-c}
options_topics = options cxx/options cxx/parser/options cxx/tree/options
./: exe{xsd}: {hxx ixx txx cxx}{** -{$options_topics} -version} \
{hxx ixx cxx}{$options_topics} \
{hxx}{version} \
$libs
# Target metadata, see also --build2-metadata in xsd.cxx.
#
exe{xsd}:
{
export.metadata = 1 xsd
xsd.name = [string] xsd
xsd.version = $version
xsd.checksum = $version
}
hxx{version}: in{version} $src_root/manifest
# Build options.
#
# Pass the copyright notice extracted from the LICENSE file.
#
obj{xsd cxx/parser/generator cxx/tree/generator}: \
cxx.poptions += -DXSD_COPYRIGHT=\"$copyright\"
# Generated options parser.
#
if $cli.configured
{
cli.cxx{options}: cli{options}
cxx/cli.cxx{options}: cxx/cli{options}
cxx/parser/cli.cxx{options}: cxx/parser/cli{options}
cxx/tree/cli.cxx{options}: cxx/tree/cli{options}
cli.options += --std c++11 -I $src_root --generate-specifier \
--ostream-type ::std::wostream --exclude-base --suppress-undocumented \
--generate-file-scanner --include-with-brackets --option-length 28 \
--cxx-prologue '#include <xsd/options-parser.hxx>'
cli.cxx{options}: cli.options += --include-prefix xsd --guard-prefix XSD
cxx/cli.cxx{options}: cli.options += --include-prefix xsd/cxx \
--guard-prefix XSD_CXX
cxx/parser/cli.cxx{options}: cli.options += --include-prefix xsd/cxx/parser \
--guard-prefix XSD_CXX_PARSER
cxx/tree/cli.cxx{options}: cli.options += --include-prefix xsd/cxx/tree \
--guard-prefix XSD_CXX_TREE
# Include the generated cli files into the distribution and don't remove
# them when cleaning in src (so that clean results in a state identical to
# distributed).
#
cli.cxx{*}:
{
dist = true
clean = ($src_root != $out_root)
}
}
|