Skip to content

Commit

Permalink
Merge pull request #52 from grafikrobot/modular
Browse files Browse the repository at this point in the history
Add support for modular build structure.
  • Loading branch information
olk authored Aug 28, 2024
2 parents b8f1065 + 0541296 commit a2171fc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
25 changes: 25 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -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
;

2 changes: 1 addition & 1 deletion example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a2171fc

Please sign in to comment.