|
Boost-Build : |
From: Andrew McDonald (andrew.mcdonald_at_[hidden])
Date: 2006-01-26 05:48:27
hi
look in
boost/tools/build/v2/test/generators-test/extra.jam
andrew
)) -----Ursprungliche Nachricht-----
)) Von: boost-build-bounces_at_[hidden]
)) [mailto:boost-build-bounces_at_[hidden]]Im Auftrag von Renaud Lepere
)) Gesendet: Donnerstag, 26. Januar 2006 11:38
)) An: Boost.Build developer's and user's list
)) Betreff: Re: [Boost-build] Run a program on anything
))
))
)) Hi
)) > > > I would like to be able to run a perl script that
)) > converts binary files
)) > > > (images, in this case) into source files you can include in your
)) > > > project. I'd rather not introduce new target types for
)) > each extension.
)) > > > What's the best way to go about this?
)) > > The 'make' rule.
)) >
)) > Could you please give an example of how to use the make rule
)) > to run an external
)) > script on some src file to create a target?
))
)) I had a similar problem as you recently, i needed to generate
)) an svnrev.h
)) file with an external tool called svnrev. Here is the solution
))
)) make svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h : svnrev ;
)) actions svnrev
)) {
)) svnrev -o$(<) $(>)
)) }
))
)) I found a little documentation on the 'make' rule here
)) http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?B
oost.Build_V2/UsingStandardGenerators
Renaud
_______________________________________________
Boost-build mailing list
Boost-build_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-build
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