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. #23

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
31 changes: 31 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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/function//boost_function
/boost/function_types//boost_function_types
/boost/mpl//boost_mpl
/boost/preprocessor//boost_preprocessor
/boost/type_traits//boost_type_traits
/boost/typeof//boost_typeof
/boost/utility//boost_utility ;

project /boost/functional
: common-requirements
<include>include
;

explicit
[ alias boost_functional : : : : <library>$(boost_dependencies) ]
[ alias all : boost_functional test factory/test forward/test overloaded_function/test ]
;

call-if : boost-library functional
;

5 changes: 5 additions & 0 deletions factory/test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

import testing ;

project : requirements
<library>/boost/functional//boost_functional
<library>/boost/smart_ptr//boost_smart_ptr
;

run value_factory.cpp ;
run value_factory_args.cpp ;
run value_factory_move.cpp ;
Expand Down
3 changes: 2 additions & 1 deletion forward/test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

import testing ;

project forward-tests
project forward-tests : requirements
<library>/boost/functional//boost_functional
;

test-suite functional/forward
Expand Down
4 changes: 2 additions & 2 deletions overloaded_function/doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import quickbook ;
using boostbook ;

doxygen reference
: ../../../../boost/functional/overloaded_function.hpp
../../../../boost/functional/overloaded_function/config.hpp
: ../../include/boost/functional/overloaded_function.hpp
../../include/boost/functional/overloaded_function/config.hpp
: <reftitle>"Reference"
<doxygen:param>PREDEFINED="DOXYGEN"
<doxygen:param>QUIET=YES
Expand Down
4 changes: 3 additions & 1 deletion overloaded_function/test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import testing ;

# Sun does not automatically detect type-of emulation (force it).
project : requirements <toolset>sun:<define>BOOST_TYPEOF_EMULATION ;
project : requirements <toolset>sun:<define>BOOST_TYPEOF_EMULATION
<library>/boost/functional//boost_functional
;

run functor.cpp ;
run make_decl.cpp ;
Expand Down
2 changes: 2 additions & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import testing ;

project : requirements <library>/boost/functional//boost_functional ;

test-suite functional :
[ run function_test.cpp ]
;
Loading