Jamfile.v2 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  3. #
  4. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #
  7. import os ;
  8. lib socket ; # SOLARIS
  9. lib nsl ; # SOLARIS
  10. lib ws2_32 ; # NT
  11. lib mswsock ; # NT
  12. lib ipv6 ; # HPUX
  13. lib network ; # HAIKU
  14. if [ os.name ] = NT
  15. {
  16. lib ssl : : <name>ssleay32 ;
  17. lib crypto : : <name>libeay32 ;
  18. }
  19. else
  20. {
  21. lib ssl ;
  22. lib crypto ;
  23. }
  24. project
  25. : requirements
  26. <library>/boost/system//boost_system
  27. <library>/boost/chrono//boost_chrono
  28. <define>BOOST_ALL_NO_LIB=1
  29. <threading>multi
  30. <target-os>solaris:<library>socket
  31. <target-os>solaris:<library>nsl
  32. <target-os>windows:<define>_WIN32_WINNT=0x0501
  33. <target-os>windows,<toolset>gcc:<library>ws2_32
  34. <target-os>windows,<toolset>gcc:<library>mswsock
  35. <target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
  36. <target-os>hpux,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
  37. <target-os>hpux:<library>ipv6
  38. <target-os>haiku:<library>network
  39. <library>ssl
  40. <library>crypto
  41. ;
  42. exe client : client.cpp ;
  43. exe server : server.cpp ;