Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:17 -05:00
parent f0e109312c
commit 048e860e59
2 changed files with 46 additions and 6 deletions

36
build.jam Normal file
View File

@@ -0,0 +1,36 @@
# 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/range
: common-requirements
<source>/boost/array//boost_array
<source>/boost/assert//boost_assert
<source>/boost/concept_check//boost_concept_check
<source>/boost/config//boost_config
<source>/boost/container_hash//boost_container_hash
<source>/boost/conversion//boost_conversion
<source>/boost/core//boost_core
<source>/boost/detail//boost_detail
<source>/boost/iterator//boost_iterator
<source>/boost/mpl//boost_mpl
<source>/boost/optional//boost_optional
<source>/boost/preprocessor//boost_preprocessor
<source>/boost/regex//boost_regex
<source>/boost/static_assert//boost_static_assert
<source>/boost/tuple//boost_tuple
<source>/boost/type_traits//boost_type_traits
<source>/boost/utility//boost_utility
<include>include
;
explicit
[ alias boost_range ]
[ alias all : boost_range test ]
;
call-if : boost-library range
;

View File

@@ -14,19 +14,23 @@ import testing ;
project
: requirements
<library>/boost/test//boost_unit_test_framework/
<library>/boost/regex//boost_regex/
<source>/boost/assign//boost_assign
<source>/boost/foreach//boost_foreach
<source>/boost/lambda//boost_lambda
<source>/boost/regex//boost_regex/<link>static
<source>/boost/test//boost_unit_test_framework
<source>/boost/variant//boost_variant
<link>static
<threading>multi
;
rule range-test ( name : includes * )
rule range-test ( name : requirements * )
{
return [
run $(name).cpp /boost/test//boost_unit_test_framework /boost/regex//boost_regex/<link>static
run $(name).cpp
:
:
: <toolset>gcc:<cxxflags>"-Wall -Wunused "
: <toolset>gcc:<cxxflags>"-Wall -Wunused " $(requirements)
] ;
}
@@ -67,7 +71,7 @@ test-suite range :
[ range-test adaptor_test/sliced ]
[ range-test adaptor_test/strided ]
[ range-test adaptor_test/strided2 ]
[ range-test adaptor_test/ticket_6742_transformed_c4789_warning ]
[ range-test adaptor_test/ticket_6742_transformed_c4789_warning : <source>/boost/phoenix//boost_phoenix ]
[ range-test adaptor_test/ticket_8676_sliced_transformed ]
[ range-test adaptor_test/ticket_9519_strided_reversed ]
[ range-test adaptor_test/tokenized ]