|
Boost-Build : |
From: Jim Gallagher (jim_at_[hidden])
Date: 2008-08-22 16:33:08
Hi,
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 ]
..//MyLib
C:/vendor_install/lib/main.obj
;
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 ]
..//MyLib
/opt/vendor_path/lib/main.o
;
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?
Thanks,
Jim Gallagher
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