summaryrefslogtreecommitdiff
path: root/libs/coroutine/build/Jamfile.v2
blob: ee9e28109afbe269bc12d5f642daa5d48932f679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

#          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 ;

project boost/coroutine
    : requirements
      <library>/boost/context//boost_context
      <library>/boost/system//boost_system
      <library>/boost/thread//boost_thread
      <toolset>gcc-4.7,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>gcc-4.7,<segmented-stacks>on:<linkflags>"-static-libgcc"
      <toolset>gcc-4.8,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>gcc-4.8,<segmented-stacks>on:<linkflags>"-static-libgcc"
      <toolset>gcc-4.9,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>gcc-4.9,<segmented-stacks>on:<linkflags>"-static-libgcc"
      <toolset>clang-3.4,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>clang-3.4,<segmented-stacks>on:<linkflags>"-static-libgcc"
      <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
      <define>BOOST_COROUTINES_SOURCE
    : usage-requirements
      <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
    : source-location ../src
    ;

alias stack_traits_sources
    : windows/stack_traits.cpp
    : <target-os>windows
    ;

alias stack_traits_sources
    : posix/stack_traits.cpp
    ;

explicit stack_traits_sources ;

lib boost_coroutine
    : detail/coroutine_context.cpp
      exceptions.cpp
      stack_traits_sources
    : <link>shared:<library>../../context/build//boost_context
      <link>shared:<library>../../system/build//boost_system
      <link>shared:<library>../../thread/build//boost_thread
    ;

boost-install boost_coroutine ;