|
Boost-Build : |
Subject: [Boost-build] Generator's target build directory?
From: Alexander Sack (pisymbol_at_[hidden])
Date: 2008-11-10 10:34:15
I am trying to create a simple generator for Google's protobuf tool
which has the following syntax:
protoc --cpp_out="<some directory>" <sourcefiles>
This will turn:
MyProtoBufs.proto --> MyProtoBufs.pb.cc and MyProtoBufs.pb.h
My issues are:
1) I don't know what to put in <some directory> to bjam can pick up
the resulting CPP source file so the corresponding compilation fails,
i.e. can I get the current target build (this my main issue)
2) The resulting file is .cc instead of .cpp, is there any reason by
bjam doesn't recognize either? (obviously I can try to use basename
and rename the files, but I still need to figure out question 1)
I obviously can do the heavy lifting in a make or notfile rules but I
was hoping to try to make the .proto files a little bit more seamless
(and bjam first class citizens etc.).
Any comments/help would be most appreciated!
-aps
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