Boost logo

Boost-Build :

From: Daniel Einspanjer (deinspanjer_at_[hidden])
Date: 2006-03-11 08:36:47

"Mark Evans" <evans_mark_at_[hidden]> wrote in message
> I need the ability to reference a pre-built object file as a source for
> exe and lib rules,
> similar to the capability that is documented for LIB types using <file>
> property.
> This arises in a cross-development environment that has to import some
> prebuilt objects from a different platform. Hoping to get lucky, I tried:
> obj vprocn : :
> <hptns-arch>tnsr:<file>import/tns-r/import/aaavproc/vprocn.o ;

> in my Jamroot and /root//vprocn as a exe source but, alas, no such luck.

This seems to work for me:

# empty alternative if the requested build features don't match a specific
instance of test1.obj
alias test1 ;

# an alternative if using the msvc toolset
alias test1 : test1.obj : <toolset>msvc ;

# test will always have test2.cpp. If test1 is not empty then it will be in
the linking response file too.
exe test : test2.cpp test1 ;

Daniel Einspanjer

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