Subject: Re: [Boost-build] Generator's target build directory?
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-11-10 15:52:42
Alexander Sack wrote:
>> What 'does not recognize' mean? A generator is producing Boost.Build targets
>> of specific types, and those types are associated with some extension. When
>> the tool is actually run, it has to produce the files with the same names that
>> Boost.Build wants, otherwise things won't work very well.
> Boost.Build does not associate CPP with *.cc files as I see it. Maybe
> I'm wrong. But the protoc binary productes .cc extension C++ source
> files. Boost.Build seems to want .cpp. Can I just type register CC
> as CPP? That was going to be my next try.
> i.e. after it calls protoc it then calls g++ expecting my target to be
> named $(target).cpp etc.
Yes, because your generator claims to produce target of type CPP, and
while several extensions of source files can be mapped to CPP type, when
generating targets, CPP is associated with .cpp extension, so Boost.Build
believe that tool should create file $(target).cpp
You might want to create a custom generator class and force specific name
when creating targets -- like:
[ new file-target $(name).cc exact : ... ]
There example of custom generator class somewhere in example/ directory
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