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