Make the library modular usable.

This commit is contained in:
Rene Rivera 2024-03-11 08:32:36 -05:00
parent b8f1065f7f
commit 1a411b9984
3 changed files with 26 additions and 4 deletions

22
build.jam Normal file
View File

@ -0,0 +1,22 @@
# Copyright René Ferdinand Rivera Morell 2023
# 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 project ;
project /boost/coroutine2
: common-requirements
<source>/boost/assert//boost_assert
<source>/boost/config//boost_config
<source>/boost/context//boost_context
<include>include
;
explicit
[ alias boost_coroutine2 ]
[ alias all : boost_coroutine2 example test ]
;
call-if : boost-library coroutine2
;

View File

@ -13,7 +13,7 @@ import modules ;
import os ;
import toolset ;
project boost/coroutine2/example
project
: requirements
<library>/boost/context//boost_context
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack

View File

@ -12,11 +12,11 @@ import os ;
import path ;
import testing ;
import toolset ;
import ../../config/checks/config : requires ;
import config : requires ;
project boost/coroutine2/test
project
: requirements
<library>../../test/build//boost_unit_test_framework
<library>/boost/test//boost_unit_test_framework
<library>/boost/context//boost_context
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS