Boost logo

Boost-Build :

Subject: [Boost-build] duplicate header files while doing code generation
From: Paolo Greppi (paolo.greppi_at_[hidden])
Date: 2010-07-25 09:52:28

Looking at docs, mailing list postings and samples I have put
together a test of code generation (.cpp and .h from .xml)
using xsltproc, with a custom generator (xml2cpp.jam).

Try "bjam -d2" on the attached test project; the output on bjam
version 3.1.16 on Kubuntu lucid is in the file output.txt.

It works, but the testgen.{cpp,h} are generated twice because
the library has the <link>static option, thereby you get
bin/gcc-4.4.3/debug/link-static/testgen.cpp and
whereas the exe target is and can not be <link>static, so it goes in
bin/gcc-4.4.3/debug/testgen.cpp and in

Is there a way to stop the <link>static propagation to testgen.{cpp,h} ?

Furthermore, how do I include a dependency on testgen_{cc,h}.xslt so
that if these change, the h and cpp are refreshed ?

TIA, Paolog

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at