Skip to content

Commit

Permalink
Merge pull request #195 from grafikrobot/modular
Browse files Browse the repository at this point in the history
Add support for modular build structure.
  • Loading branch information
jzmaddock authored Aug 19, 2024
2 parents 821c53c + ba18033 commit ba238b7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
32 changes: 32 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -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
;

6 changes: 3 additions & 3 deletions doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
;

Expand Down
4 changes: 4 additions & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ba238b7

Please sign in to comment.