Compare commits

...

2 Commits

Author SHA1 Message Date
René Ferdinand Rivera Morell
c142f7bdc2 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.
2024-08-19 00:55:03 +03:00
Andrey Semashev
dadb7c1222 Removed gcc-4.7 from GitHub Actions.
The compiler is not able to handle Boost.LexicalCast.
2024-08-19 00:46:49 +03:00
3 changed files with 36 additions and 7 deletions

View File

@@ -33,12 +33,6 @@ jobs:
matrix:
include:
# Linux, gcc
- toolset: gcc-4.7
cxxstd: "11"
os: ubuntu-latest
container: ubuntu:16.04
install:
- g++-4.7
- toolset: gcc-4.8
cxxstd: "11"
os: ubuntu-latest

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