Boost logo

Boost-Build :

Subject: Re: [Boost-build] Is there any difference , or is this redundant ?
From: Kuhl, Brian (brian.kuhl_at_[hidden])
Date: 2018-01-10 05:04:07


This one was bit more complex, is the alias part correct?

example/cpp03/ssl/Jamfile.v2 | 30 +++++++++++-------------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/example/cpp03/ssl/Jamfile.v2 b/example/cpp03/ssl/Jamfile.v2
index 0b3e229..ecbeb64 100644
--- a/example/cpp03/ssl/Jamfile.v2
+++ b/example/cpp03/ssl/Jamfile.v2
@@ -12,11 +12,6 @@ if [ os.name ] = SOLARIS
   lib socket ;
   lib nsl ;
 }
-else if [ os.name ] = NT
-{
- lib ws2_32 ;
- lib mswsock ;
-}
 else if [ os.name ] = HPUX
 {
   lib ipv6 ;
@@ -26,16 +21,13 @@ else if [ os.name ] = HAIKU
   lib network ;
 }
 
-if [ os.name ] = NT
-{
- lib ssl : : <name>ssleay32 ;
- lib crypto : : <name>libeay32 ;
-}
-else
-{
- lib ssl ;
- lib crypto ;
-}
+alias ssl_libs
+ : <library>ssleay32 <library>libeay32
+ : <target-os>windows
+ ;
+alias ssl_libs : <library>ssl <library>crypto ;
+
+explicit ssl_libs
 
 project
   : requirements
@@ -45,14 +37,14 @@ project
     <os>SOLARIS:<library>socket
     <os>SOLARIS:<library>nsl
     <target-os>windows:<define>_WIN32_WINNT=0x0501
- <target-os>windows,<toolset>gcc:<library>ws2_32
- <target-os>windows,<toolset>gcc:<library>mswsock
+ <target-os>windows:<library>ws2_32
+ <target-os>windows:<library>mswsock
+ <target-os>windows:<library>ssleay32
     <target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
     <os>HPUX,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
     <os>HPUX:<library>ipv6
     <os>HAIKU:<library>network
- <library>ssl
- <library>crypto
+ ssl_libs
   ;
 
 exe client : client.cpp ;

> -----Original Message-----
> From: Boost-build [mailto:boost-build-bounces_at_[hidden]] On Behalf Of
> Steven Watanabe via Boost-build
> Sent: Tuesday, January 09, 2018 5:05 PM
> To: Kuhl, Brian via Boost-build
> Cc: Steven Watanabe
> Subject: Re: [Boost-build] Is there any difference , or is this redundant ?
>
> AMDG
>
> On 01/09/2018 02:38 PM, Kuhl, Brian via Boost-build wrote:
> > Hi I'm looking to update my pull request to ASIO and I'm looking at various NT
> logic that's are causing problems for cross-compiles.
> > > In various ...
> > libs/asio/example/... /Jamfile.v2
> >
> > else if [ os.name ] = NT
> > {
> > lib ws2_32 ;
> > lib mswsock ;
> > }
> > <snip>
> > <os>NT:<define>_WIN32_WINNT=0x0501
> > <snip>
> >
> > Could we not just ?
> >
> > <target-os>windows:<library>ws2_32
> > <target-os>windows:<library>mswsock
> >
>
> Yes, <target-os> is the correct way. <os> has
> been obsolete for years.
>
> In Christ,
> Steven Watanabe
> _______________________________________________
> Unsubscribe & other changes:
> https://lists.boost.org/mailman/listinfo.cgi/boost-build


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