From: Timothy Ritchey (tritchey_at_[hidden])
Date: 2004-11-18 11:50:02


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

project kernel
: requirements <threading>multi
: default-build release
: source-location ./src
: build-dir ../build/stage/lib
;
exe kernel
: [ glob *.cpp ]
../libian ../libsec ..//libxml2 ..//ws2_32
: <include>include
<include>../libian/include
<include>../libsec/include
<include>../base/boost
<toolset>intel-win:<include>platform/win32/include
<toolset>intel-win:<include>../base/platform/win32/include
<toolset>intel-win:<include>../base/platform/win32/libxml2/include
<toolset>intel-win:<include>../base/platform/win32/iconv/include
<toolset>intel-win:<include>../base/mDNSResponder
<threading>multi
;