
On 01/05/2011 09:32, Vladimir Prus wrote:
Well, it would be trivial to implement syntax like:
utf8cpp file : file.cpp ; exe whatever : whatever.cpp file ;
If that's what you're asking for. In fact, here's a complete example that should almost work, in any Jamfile:
import type ; type.register UTF8CPP : : CPP ;
import generators ; generators.register-standard $(__name__).add-bom : CPP : UTF8CPP ;
actions add-bom { add-bom $(>) -o $(<) }
utf8cpp file : file.cpp ; exe whatever : whatever.cpp file ;
I say "almost" because somebody who is actually interested in all this should write the 'add-bom' utility, test everything, and do various other boring things, like sending a patch and/or checking in.
I think the ball is now in your court.
I'm not sure that's necessary, but what if I wanted to do that with header files as well, without having to list them all?