Jamfile.v2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright Oliver Kowalke 2009.
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at
  4. # http://www.boost.org/LICENSE_1_0.txt)
  5. import feature ;
  6. import modules ;
  7. import toolset ;
  8. project boost/coroutine
  9. : requirements
  10. <library>/boost/context//boost_context
  11. <library>/boost/thread//boost_thread
  12. <toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
  13. <toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
  14. <toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack
  15. <toolset>clang,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
  16. <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
  17. <define>BOOST_COROUTINES_SOURCE
  18. : usage-requirements
  19. <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
  20. : source-location ../src
  21. ;
  22. alias stack_traits_sources
  23. : windows/stack_traits.cpp
  24. : <target-os>windows
  25. ;
  26. alias stack_traits_sources
  27. : posix/stack_traits.cpp
  28. ;
  29. explicit stack_traits_sources ;
  30. lib boost_coroutine
  31. : detail/coroutine_context.cpp
  32. exceptions.cpp
  33. stack_traits_sources
  34. : <link>shared:<library>../../context/build//boost_context
  35. <link>shared:<library>../../thread/build//boost_thread
  36. ;
  37. boost-install boost_coroutine ;