Boost logo

Boost-Build :

From: Jim Gallagher (jim_at_[hidden])
Date: 2008-08-22 16:33:08


I am building an executable that links against a vendor's API. The
vendor supplies an object file that contains main(). So, if I build on
windows, this works:

exe JimTest : [ glob *.cpp ] [ glob *.c ]

However, my project must be built on both windows and unix. So, I need
a way for the target rule to look like this on unix:

exe JimTest : [ glob *.cpp ] [ glob *.c ]

Actually, I really want the vendor path set by an environment
variable. How can I refer to an environment variable in a target rule,
and how can I get the correct extension for the object file?

Jim Gallagher

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at