mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 15:14:01 +00:00
Merge pull request #52 from grafikrobot/modular
Add support for modular build structure.
This commit is contained in:
commit
a2171fc779
25
build.jam
Normal file
25
build.jam
Normal 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
|
||||
;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user