diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..1c97076 --- /dev/null +++ b/build.jam @@ -0,0 +1,29 @@ +# 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/detail//boost_detail + /boost/mpl//boost_mpl + /boost/preprocessor//boost_preprocessor + /boost/type_traits//boost_type_traits ; + +project /boost/function_types + : common-requirements + include + ; + +explicit + [ alias boost_function_types : : : : $(boost_dependencies) ] + [ alias all : boost_function_types example test ] + ; + +call-if : boost-library function_types + : install boost_function_types + ; + diff --git a/example/Jamfile b/example/Jamfile index 08ab43d..99d9cf3 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -1,19 +1,27 @@ -# (C) Copyright Tobias Schwinger +# (C) Copyright Tobias Schwinger # # Use, modification and distribution are subject to the Boost Software License, # Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). #------------------------------------------------------------------------------- -exe interpreter_example : interpreter_example.cpp ; +project : requirements /boost/function_types//boost_function_types ; + +exe interpreter_example : interpreter_example.cpp + : /boost/tokenizer//boost_tokenizer + /boost/lexical_cast//boost_lexical_cast + ; exe result_of_example : result_of_example.cpp ; exe interface_example : interface_example.cpp ; -exe fast_mem_fn_example : fast_mem_fn_example.cpp - : . ; # needed for Boost.PP file iteration with some compilers +exe fast_mem_fn_example : fast_mem_fn_example.cpp + : . # needed for Boost.PP file iteration with some compilers + /boost/timer//boost_timer + /boost/bind//boost_bind + ; exe macro_type_args_example : macro_type_args_example.cpp ; diff --git a/test/Jamfile b/test/Jamfile index e652c46..d1feeae 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -1,5 +1,5 @@ -# (C) Copyright Tobias Schwinger +# (C) Copyright Tobias Schwinger # # Use, modification and distribution are subject to the Boost Software License, # Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). @@ -8,8 +8,10 @@ import testing ; +project : requirements /boost/function_types//boost_function_types ; + { - test-suite function_types : + test-suite function_types : # Classification @@ -28,7 +30,7 @@ import testing ; # [ compile classification/is_cv_function.cpp ] # Decomposition - + [ compile decomposition/components.cpp ] [ compile decomposition/result_type.cpp ] [ compile decomposition/function_arity.cpp ] @@ -70,17 +72,19 @@ import testing ; [ compile custom_ccs/member_ccs_exact.cpp : 64:no ] # Property tag - + [ compile custom_ccs/property_tag.cpp ] - + # Code from the examples - [ compile ../example/interpreter_example.cpp ] + [ compile ../example/interpreter_example.cpp : /boost/tokenizer//boost_tokenizer /boost/lexical_cast//boost_lexical_cast ] [ compile ../example/result_of_example.cpp ] [ compile ../example/interface_example.cpp ] - [ compile ../example/fast_mem_fn_example.cpp + [ compile ../example/fast_mem_fn_example.cpp # needed for Boost.PP file iteration with some compilers : ../example + /boost/timer//boost_timer + /boost/bind//boost_bind ] [ compile ../example/macro_type_args_example.cpp ] ;