From bf959a7fc119f9156c4b84c9d0a10900d9153f8d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Jul 2017 14:45:05 +0200 Subject: Initial infrastructure for utility libraries --- build2/cc/utility.hxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'build2/cc/utility.hxx') diff --git a/build2/cc/utility.hxx b/build2/cc/utility.hxx index 895d9c5..2f6834f 100644 --- a/build2/cc/utility.hxx +++ b/build2/cc/utility.hxx @@ -29,7 +29,7 @@ namespace build2 // Link output type. // - otype + ltype link_type (const target&); // Library link order. @@ -44,10 +44,17 @@ namespace build2 lorder link_order (const scope& base, otype); - // Given the link order return the library member (liba or libs) to link. + inline linfo + link_info (const scope& base, otype ot) + { + return linfo {ot, link_order (base, ot)}; + } + + // Given the link order return the library member to link. That is, liba{} + // or libs{} for lib{} and libue{}, libua{} or libus{} for libu{}. // const target& - link_member (const bin::lib&, action, lorder); + link_member (const bin::libx&, action, linfo); } } -- cgit v1.1