Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:17 -05:00
parent 28b88d07bb
commit 7248975133
3 changed files with 32 additions and 3 deletions

27
build.jam Normal file
View File

@ -0,0 +1,27 @@
# Copyright René Ferdinand Rivera Morell 2023
# 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)
import project ;
project /boost/function
: common-requirements
<source>/boost/assert//boost_assert
<source>/boost/bind//boost_bind
<source>/boost/config//boost_config
<source>/boost/core//boost_core
<source>/boost/preprocessor//boost_preprocessor
<source>/boost/throw_exception//boost_throw_exception
<source>/boost/type_traits//boost_type_traits
<source>/boost/typeof//boost_typeof
<include>include
;
explicit
[ alias boost_function ]
[ alias all : boost_function example test ]
;
call-if : boost-library function
;

View File

@ -6,7 +6,9 @@
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
import ../../config/checks/config : requires ;
require-b2 5.0.1 ;
import-search /boost/config/checks ;
import config : requires ;
import testing ;
run bind1st.cpp : : : [ requires cxx98_binders ] ;

View File

@ -24,7 +24,7 @@ run function_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : fu
run function_n_test.cpp ;
run allocator_test.cpp ;
run stateless_test.cpp ;
run lambda_test.cpp ;
run lambda_test.cpp : : : <source>/boost/lambda//boost_lambda ;
compile-fail function_test_fail1.cpp ;
compile-fail function_test_fail2.cpp ;
compile function_30.cpp ;
@ -42,7 +42,7 @@ run function_ref_portable.cpp ;
run contains_test.cpp ;
run contains2_test.cpp ;
run nothrow_swap.cpp ;
run rvalues_test.cpp ;
run rvalues_test.cpp : : : <source>/boost/move//boost_move ;
compile function_typeof_test.cpp
: <cxxstd>03:<build>no <cxxstd>98:<build>no <cxxstd>0x:<build>no ;
run result_arg_types_test.cpp ;