|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-11-29 03:27:34
Hi Jonathan,
> I'm trying to decide which build system to use for a web application. If it
> were a multi-platform C++ application, it would be a no-brainer; but only a
> limited part of the project is C++, and we only need to support VC 7.1.
>
> One of the tools I'll need to support takes a collection of XML files and
> generates web documents. The XML files support several import mechanisms
> which generate implicit dependencies. Looking at the Scons docs, it's easy
> to see how to scan for dependencies since a custom scanner can parse XML
> using Python. Unfortunately, identifying XML import declarations looks like
> it exceeds the capacity of the scanners described here:
> http://www.boost.org/doc/html/bbv2/extending/targets.html. Among other
> things, I need to be able to resolve namespace prefixes. Is there some way
> to do this in BBv2?
Obviously, V2 does not have namespace-aware XML scanner handy. The best
approach would be, ehm... build bjam with python support, with:
./build --with-python=/usr
on Linux and with
build.bat --with-python=whatever
on Windows, and run the attached files with:
bjam -fpytest.jam
The same importing logic can be used in regular Jamfiles.
- Volodya
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