Files
coroutine/build/Jamfile.v2
2013-02-15 09:19:26 +00:00

48 lines
1.3 KiB
Plaintext

# Copyright Oliver Kowalke 2009.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import feature ;
import modules ;
import toolset ;
feature.feature segmented-stacks : on : optional propagated composite ;
feature.compose <segmented-stacks>on : <define>BOOST_USE_SEGMENTED_STACKS ;
project boost/coroutine
: requirements
<library>/boost/context//boost_context
<toolset>gcc-4.7,<segmented-stacks>on:<cxxflags>-fsplit-stack
<toolset>gcc-4.7,<segmented-stacks>on:<linkflags>"-static-libgcc"
<link>static
<threading>multi
: source-location ../src
: usage-requirements
<link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
;
alias allocator_sources
: detail/standard_stack_allocator_windows.cpp
detail/segmented_stack_allocator.cpp
: <target-os>windows
;
alias allocator_sources
: detail/standard_stack_allocator_posix.cpp
detail/segmented_stack_allocator.cpp
;
explicit yield_sources ;
lib boost_coroutine
: allocator_sources
detail/coroutine_context.cpp
: <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
:
: <link>shared:<library>../../context/build//boost_context
;
boost-install boost_coroutine ;