diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..f3e1cf0 --- /dev/null +++ b/build.jam @@ -0,0 +1,25 @@ +# Copyright René Ferdinand Rivera Morell 2023-2024 +# 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) + +require-b2 5.2 ; + +constant boost_dependencies : + /boost/assert//boost_assert + /boost/config//boost_config + /boost/context//boost_context ; + +project /boost/coroutine2 + : common-requirements + include + ; + +explicit + [ alias boost_coroutine2 : : : : $(boost_dependencies) ] + [ alias all : boost_coroutine2 example test ] + ; + +call-if : boost-library coroutine2 + ; + diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 327cfe9..6ba626a 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -13,7 +13,7 @@ import modules ; import os ; import toolset ; -project boost/coroutine2/example +project : requirements /boost/context//boost_context linux,gcc,on:-fsplit-stack diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 8cec95c..9f311f2 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -12,11 +12,12 @@ import os ; import path ; import testing ; import toolset ; -import ../../config/checks/config : requires ; +import-search /boost/config/checks ; +import config : requires ; -project boost/coroutine2/test +project : requirements - ../../test/build//boost_unit_test_framework + /boost/test//boost_unit_test_framework /boost/context//boost_context linux,gcc,on:-fsplit-stack linux,gcc,on:-DBOOST_USE_SEGMENTED_STACKS @@ -47,7 +48,7 @@ rule native-impl ( properties * ) } test-suite minimal : -[ run test_coroutine.cpp : +[ run test_coroutine.cpp : : : fcontext [ requires cxx11_auto_declarations @@ -63,7 +64,7 @@ test-suite minimal : cxx11_variadic_templates ] : test_coroutine_asm ] -[ run test_coroutine.cpp : +[ run test_coroutine.cpp : : : @native-impl [ requires cxx11_auto_declarations