Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-29 14:28:57


Kevin Wheatley <hxpro_at_[hidden]> writes:

> If I have a project which I wanted to have as a place holder for a set
> of usage-requirements e.g. <include> <define> etc. Can I do it?
>
> I'd like to say
>
> Contents of Jamroot:
>
> use-project /testing : path_to_project ;
> use-project /some_application : some_application ;
>
> build-project some_application ;
>
> Contents of some_application/Jamfile.v2:
>
> exe foo : foo.cpp /project ;
>
> Contents of path_to_project/Jamfile.v2:
> local includedir = include ;
>
> project testing
> : requirements <include>$(includedir)
> : usage-requirements <include>$(includedir) ;
>
> If the project defines a target say a "lib" then I'd reference that
> and be done with it, but at the moment there is no target as its all
> header based software, but I don't appear to get the needed <include>

You can define a header-only library... with no headers in it ;-)
Check out the alias target in libs/test/build/Jamfile.v2

Volodya, didn't we define an interface for making header-only libs
using the "lib" rule? Is that available yet?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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