Merge pull request #52 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Oliver Kowalke 2024-08-28 12:37:12 +02:00 committed by GitHub
commit a2171fc779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 6 deletions

25
build.jam Normal file
View File

@ -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>include
;
explicit
[ alias boost_coroutine2 : : : : <library>$(boost_dependencies) ]
[ 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,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
<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
@ -47,7 +48,7 @@ rule native-impl ( properties * )
}
test-suite minimal :
[ run test_coroutine.cpp :
[ run test_coroutine.cpp :
: :
<context-impl>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 :
: :
<conditional>@native-impl
[ requires cxx11_auto_declarations