|
Boost-Build : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-11-30 07:48:38
Vladimir Prus <ghost_at_[hidden]> writes:
> On Tuesday 29 November 2005 22:28, David Abrahams wrote:
>
>> > 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?
>
> I can't remember, sorry. What was the interface.
I guess
lib header-only-lib
: # no sources
: # no requirements
: # no default-build
: <include>whatever
;
ought to do it. IOW, just have lib dispatch to alias when there are
no sources.
-- 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