summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/parser/polyroot/buildfile
blob: 8fd4bf4d3c2fd1b5d8a1ea3e49a24567700d4378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# file      : cxx/parser/polyroot/buildfile
# license   : not copyrighted - public domain

import libs = libxsd%lib{xsd}

./: exe{driver} doc{README} xml{batman person superman}

exe{driver}: {hxx cxx}{* -supermen-pskel} {hxx ixx cxx}{supermen-pskel} $libs \
             testscript

cxx.poptions =+ "-I$out_base" "-I$src_base"

<{hxx ixx cxx}{supermen-pskel}>: xsd{supermen} $xsd
{{
  diag xsd ($<[0]) # @@ TMP

  $xsd cxx-parser $xsd_cxx_std   \
       --generate-inline         \
       --skel-file-suffix -pskel \
       --generate-polymorphic    \
       --output-dir $out_base    \
       $path($<[0])
}}