summaryrefslogtreecommitdiff
path: root/libxsd/libxsd/buildfile
blob: 1549f19c6e456c432745c75c8bc1b050f954b6c2 (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
# file      : libxsd/buildfile
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

import int_libs  = libxerces-c%lib{xerces-c}
import int_libs += libexpat%lib{expat}

lib{xsd}: cxx/{hxx ixx txx}{** -version} cxx/{hxx}{version} $int_libs

# Include the generated version header into the distribution (so that we don't
# pick up an installed one) and don't remove it when cleaning in src (so that
# clean results in a state identical to distributed).
#
cxx/
{
  hxx{version}: in{version} $src_root/manifest
  hxx{version}:
  {
    dist  = true
    clean = ($src_root != $out_root)
  }
}

# Export options.
#
lib{xsd}:
{
  cxx.export.poptions = "-I$out_root" "-I$src_root"
  cxx.export.libs     = $int_libs
}

# Install into the libxsd/ subdirectory of, say, /usr/include/ recreating
# subdirectories.
#
{hxx ixx txx}{*}:
{
  install         = include/libxsd/
  install.subdirs = true
}