Add support for modular build structure. (#114)

* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Change all <source> references to <library>.

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.
This commit is contained in:
René Ferdinand Rivera Morell
2024-08-18 16:55:03 -05:00
committed by GitHub
parent dadb7c1222
commit c142f7bdc2
2 changed files with 36 additions and 1 deletions

32
build.jam Normal file
View File

@@ -0,0 +1,32 @@
# 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/fusion//boost_fusion
/boost/mp11//boost_mp11
/boost/mpl//boost_mpl
/boost/optional//boost_optional
/boost/preprocessor//boost_preprocessor
/boost/type_traits//boost_type_traits
/boost/utility//boost_utility ;
project /boost/parameter
: common-requirements
<include>include
;
explicit
[ alias boost_parameter : : : : <library>$(boost_dependencies) ]
[ alias all : boost_parameter test ]
;
call-if : boost-library parameter
;

View File

@@ -11,7 +11,8 @@ import testing ;
project
:
default-build
requirements
<library>/boost/parameter//boost_parameter
<warnings>off
<include>.
;
@@ -304,6 +305,7 @@ alias parameter_literate_tests
:
<define>BOOST_PARAMETER_MAX_ARITY=5
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
<library>/boost/graph//boost_graph
:
:
<preserve-target-tests>off
@@ -426,6 +428,7 @@ alias parameter_literate_tests
:
<define>BOOST_PARAMETER_MAX_ARITY=5
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
<library>/boost/graph//boost_graph
:
:
<preserve-target-tests>off