mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-19 04:22:13 +00:00
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:
committed by
GitHub
parent
dadb7c1222
commit
c142f7bdc2
32
build.jam
Normal file
32
build.jam
Normal 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
|
||||||
|
;
|
||||||
|
|
||||||
@@ -11,7 +11,8 @@ import testing ;
|
|||||||
|
|
||||||
project
|
project
|
||||||
:
|
:
|
||||||
default-build
|
requirements
|
||||||
|
<library>/boost/parameter//boost_parameter
|
||||||
<warnings>off
|
<warnings>off
|
||||||
<include>.
|
<include>.
|
||||||
;
|
;
|
||||||
@@ -304,6 +305,7 @@ alias parameter_literate_tests
|
|||||||
:
|
:
|
||||||
<define>BOOST_PARAMETER_MAX_ARITY=5
|
<define>BOOST_PARAMETER_MAX_ARITY=5
|
||||||
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
|
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
|
||||||
|
<library>/boost/graph//boost_graph
|
||||||
:
|
:
|
||||||
:
|
:
|
||||||
<preserve-target-tests>off
|
<preserve-target-tests>off
|
||||||
@@ -426,6 +428,7 @@ alias parameter_literate_tests
|
|||||||
:
|
:
|
||||||
<define>BOOST_PARAMETER_MAX_ARITY=5
|
<define>BOOST_PARAMETER_MAX_ARITY=5
|
||||||
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
|
<define>BOOST_PARAMETER_EXPONENTIAL_OVERLOAD_THRESHOLD_ARITY=6
|
||||||
|
<library>/boost/graph//boost_graph
|
||||||
:
|
:
|
||||||
:
|
:
|
||||||
<preserve-target-tests>off
|
<preserve-target-tests>off
|
||||||
|
|||||||
Reference in New Issue
Block a user