reprocessing build output
Has anyone got any advice for how to reprocess the build output for a custom step into a visual studio format error ?
I was thinking I could capture the output of the compiler and then use something like sed to reformat it to the visual studio format (so I can double click on it etc),
I currently have the compile action setup, however im not sure how to configure jam so that I can capture the output and then reformat it...
Anyone have any ideas as to the best way to do this ?
RE: reprocessing build output - Added by Joshua Jensen about 1 year ago
I have had per action line filtering support sitting around for a while, but it wasn't finished. I have pushed it to the nextgen branch in hope it will be helpful.
Only Lua side line filters are supported right now. To enable the Lua lookups, do the following in your Jamfile:
USE_LUA_LINE_FILTERS = 1 ;
Then, for each action you want to filter, create a block of Lua code similar to below.
LuaString " LineFilters['C.vc.C++'] = function(line) return os.date() .. ' - ' .. line end " ;
If you have additional ideas for this feature, let me know.