|
Boost-Build : |
Subject: [Boost-build] duplicate generated files while doing code generation with xsltproc
From: Paolo Greppi (paolo.greppi_at_[hidden])
Date: 2010-07-25 09:53:51
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
bin/gcc-4.4.3/debug/link-static/testgen.h,
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
bin/gcc-4.4.3/debug/testgen.h.
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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk