Skip to content

Add support for modular build structure. #21

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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
27 changes: 27 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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/config//boost_config
/boost/core//boost_core
/boost/iterator//boost_iterator
/boost/mpl//boost_mpl
/boost/range//boost_range
/boost/type_traits//boost_type_traits ;

project /boost/foreach
;

explicit
[ alias boost_foreach : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_foreach test ]
;

call-if : boost-library foreach
;

3 changes: 2 additions & 1 deletion test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# bring in rules for testing
import testing ;

project : requirements <toolset>msvc:<asynch-exceptions>on ;
project : requirements <toolset>msvc:<asynch-exceptions>on
<library>/boost/foreach//boost_foreach ;

test-suite "foreach"
: [ run stl_byval.cpp ]
Expand Down