I'm trying to learn how to use boost build. For starters, I'd like to run the codesynthesis xsd tool on an xsd file to generate c++ code. This tool takes one file as input and generates multiple output files. I'm having some difficulty figuring out how to do this with boost build, and I can't find any examples that are terribly similar to what I want to do. Can anyone provide some insights here? I've attached my code below. Thanks!
import path ;
import type ;
import generators ;
type.register XSD : xsd ;
generators.register-standard xsd.compilexsd : XSD : CPP ;
module xsd
{
actions compilexsd
{
xsd cxx-tree \
--show-sloc \
--generate-doxygen \
--generate-forward \
--generate-serialization \
--output-dir [path.parent($(<))] \
$(>)
}
}
exe app : main.cpp test.xsd ;