Boost logo

Boost-Build :

Subject: [Boost-build] bjam - two outputs from the same file
From: Rao, Anant (Anant.Rao_at_[hidden])
Date: 2010-06-04 01:22:51


Hi,

If I have a source file that generates two types of output, is it possible to generate them using bjam?

Say, foo.cpp is like this:

void f()
{
}

#if defined(EXE)
int main()
{
    f();
}
#endif

Now, using the same file, I want to generate a binary (by defining EXE) as well as a lib.

How do I declare the targets in a bjam file?
Thanks,
Anant

-----------------------------------------
The information contained in this email message and its attachments is intended only for the private and confidential use of the recipient(s) named above, unless the sender expressly agrees otherwise.
Transmission of email over the Internet is not a secure communications medium. If you are requesting or have requested the transmittal of personal data, as defined in applicable privacy laws by means of email or in an attachment to email, you must select a more secure alternate means of transmittal that supports your obligations to protect such personal data.
If the reader of this message is not the intended recipient and/or you have received this email in error, you must take no action based on the information in this email and you are hereby notified that any dissemination, misuse or copying or disclosure of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email and delete the original message.



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