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

# For more information, see http://www.boost.org/

import common ;
import feature ;
import indirect ;
import modules ;
import os ;
import toolset ;

project boost/context/performance
    : requirements
      <library>/boost/context//boost_context
      <library>/boost/coroutine//boost_coroutine
      <toolset>gcc-4.7,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <toolset>gcc-4.8,<segmented-stacks>on:<cxxflags>-fsplit-stack
      <link>static
      <linkflags>"-lrt" 
      <threading>multi
    ;

alias sources
   : performance.cpp
     bind_processor_aix.cpp
   : <target-os>aix
   ;

alias sources
   : performance.cpp
     bind_processor_freebsd.cpp
   : <target-os>freebsd
   ;

alias sources
   : performance.cpp
     bind_processor_hpux.cpp
   : <target-os>hpux
   ;

alias sources
   : performance.cpp
     bind_processor_linux.cpp
   : <target-os>linux
   ;

alias sources
   : performance.cpp
     bind_processor_solaris.cpp
   : <target-os>solaris
   ;

alias sources
   : performance.cpp
     bind_processor_windows.cpp
   : <target-os>windows
   ;

explicit sources ;

exe performance
   : sources
   ;