Boost logo

Boost-Build :

From: Daniel James (daniel_at_[hidden])
Date: 2004-11-18 18:06:41

Timothy Ritchey wrote:
> I have a project source tree that looks like this:
> ../include
> ../src
> ../platform/win32/include
> ../platform/win32/src
> ../platform/linux/include
> ../platform/linux/src
> The root include and src are the platform agnostic files, and each platform
> directory has the versions of the files specifically for that platform. I've
> figured out how to optionally include different directories based on the
> toolset, but for the life of me can't figure out how to include additional
> source files based on the toolset/os. Any help would be greatly appreciated.
> Cheers,
> tim

You use the rule, for example:

import os ;

if [ ] in NT CYGWIN {
build-project platform/win32 ;
else {
build-project platform/linux ;

There's also a os.on-windows rule.

Unfortunately, I think this is the operating system that bjam is running
on, not the operating system the build is targeting, so it doesn't work
when you are cross compiling.



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