Merge pull request #195 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
jzmaddock
2024-08-19 09:22:11 +01:00
committed by GitHub
3 changed files with 39 additions and 3 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/static_assert//boost_static_assert ;
project /boost/type_traits
: common-requirements
<include>include
;
explicit
[ alias boost_type_traits : : : : <library>$(boost_dependencies) ]
[ alias all : boost_type_traits test ]
# Other Boost lib tests depend on the type_traits test checks.
[ alias testing
: # sources
: # requirements
: # default-buidl
: # usage-requirements
<include>test
]
;
call-if : boost-library type_traits
;

View File

@ -18,7 +18,7 @@ boostbook standalone
# Index generation:
# Path for links to Boost:
<xsl:param>boost.root=../../../..
# Some general style settings:
<xsl:param>table.footnote.number.format=1
<xsl:param>footnote.number.format=1
@ -36,7 +36,7 @@ boostbook standalone
<xsl:param>toc.max.depth=4
# How far down we go with TOC's
<xsl:param>generate.section.toc.level=10
# PDF Options:
# TOC Generation: this is needed for FOP-0.9 and later:
<xsl:param>fop1.extensions=0
@ -62,7 +62,7 @@ boostbook standalone
<format>pdf:<auto-index-internal>off
<format>html:<auto-index-internal>on
<auto-index-script>$(here)/index.idx
<auto-index-prefix>$(here)/../../..
<auto-index-prefix>$(here)/../include
<auto-index>on
;

View File

@ -18,6 +18,10 @@ if [ os.environ CI ]
# regular
project : requirements
<library>/boost/core//boost_core
<library>/boost/move//boost_move
<library>/boost/mpl//boost_mpl
# default to all warnings on:
<warnings>all
# set warnings as errors for those compilers we know we get warning free: