Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #52

Merged
merged 7 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading