|
Boost-Build : |
Subject: [Boost-build] custom extension with custom rule doesn't trigger any actions
From: Scott Bridges (scott.m.bridges_at_[hidden])
Date: 2014-03-04 13:25:58
I'm using a third party code generation tool that produces source files
with a non-standard extension, and there is no option to change it. For
simplicity I'll use the example of a .foo file generates a .bar file (a cpp
source file).
I can add a custom cpp extension with:
type.register BAR : bar : CPP ;
Which builds things like source.bar in exe rules just like I expect.
And I can add a custom rule for the code generation with:
type.register FOO : foo ;
generators.register-standard test.baz : FOO : CPP ;
Which builds things like input.foo in exe rules like I expect (just with
the wrong extension).
But when I try to combine them into:
type.register FOO : foo ;
type.register BAR : bar : CPP ;
generators.register-standard test.baz : FOO : BAR ;
Now input.foo in an exe rule doesn't do anything at all. No errors, it just
never triggers any actions. Any suggestions?
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