Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #59

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
11 changes: 0 additions & 11 deletions Jamfile

This file was deleted.

29 changes: 29 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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/assert//boost_assert
/boost/config//boost_config
/boost/integer//boost_integer
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits
/boost/winapi//boost_winapi ;

project /boost/pool
: common-requirements
<include>include
;

explicit
[ alias boost_pool : : : : <library>$(boost_dependencies) ]
[ alias all : boost_pool example test ]
;

call-if
: boost-library pool
;

32 changes: 16 additions & 16 deletions doc/jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ using quickbook ;

doxygen autodoc
:
[ glob ../../../boost/pool/*.hpp ]
#[ glob ../../../boost/pool/detail/*.hpp ]
#[ glob ../../../boost/pool/detail/*.ipp ]
[ glob ../include/boost/pool/*.hpp ]
#[ glob ../include/boost/pool/detail/*.hpp ]
#[ glob ../include/boost/pool/detail/*.ipp ]
# Renamed as .inc are not recognised correctly by doxywizard leaving error message.
# Warning: include file boost/pool/detail/pool_construct.inc not found, perhaps you forgot to add its directory to INCLUDE_PATH?
# and problem with 'no type' in jamfile.
# error: target { ../../../boost/pool/detail/pool_construct.inc. } has no type
#[ glob ../../../boost/pool/examples/*.*pp ] # Example source files.

#[ glob ../include/boost/pool/examples/*.*pp ] # Example source files.
:
<doxygen:param>WARNINGS=YES # Default NO, but useful to see warnings, especially in a logfile.
# It is also wise to to set a warnings logfile like this:
Expand All @@ -51,7 +51,7 @@ boostbook standalone
:
pool
:

# General settings
# =================
# Options for html and pdf
Expand All @@ -66,7 +66,7 @@ boostbook standalone
<xsl:param>admon.graphics=1
# Path for links to Boost:
<xsl:param>boost.root=../../../..

# HTML options:
# =============
# Use graphics icons not text for navigation:
Expand Down Expand Up @@ -102,38 +102,38 @@ boostbook standalone
<xsl:param>page.margin.inner=0.5in
# Margin size:
<xsl:param>page.margin.outer=0.5in

# Yes, we want graphics for admonishments:
<xsl:param>admon.graphics=1

# Set these one for PDF generation *only*:
# default png graphics are awful in PDF form,
# better use SVG instead:
<format>pdf:<xsl:param>admon.graphics.extension=".svg"
#<format>pdf:<xsl:param>admon.graphics.extension=".png" # Only png images are available.
<format>pdf:<xsl:param>use.role.for.mediaobject=1
<format>pdf:<xsl:param>use.role.for.mediaobject=1
<format>pdf:<xsl:param>preferred.mediaobject.role=print
<format>pdf:<xsl:param>img.src.path=$(images_location)/ # graphics (diagrams) for pdf.
<format>pdf:<xsl:param>draft.mode="no"
<format>pdf:<xsl:param>boost.url.prefix=I:/boost-sandbox/guild/pool/libs/pool/doc/html

# <auto-index>on turns on index (or off).
<auto-index>on
<auto-index-verbose>on

# Choose indexing method (separately for html and pdf):
<format>html:<auto-index-internal>on # on (or off) to use internally generated indexes.
# <format>html:<xsl:param>generate.index=0 # Don't let the XSL stylesheets generate indexes.

<format>pdf:<auto-index-internal>off # on (or off) to use internally generated indexes.
# <auto-index-type>index # Use <index>...</index> as the XML wrapper.

<format>pdf:<xsl:param>index.on.type=1 # For the native stylesheets to generate the different indexes.
# PDF native index support is probably better for PDFs as then you actually get page numbers.

<auto-index-script>index.idx # Specifies the name of the script to load.
<auto-index-script>index.idx # Specifies the name of the script to load.
# <auto-index-prefix>../../../ # Path to /pool so index.idx !scan-path can use boost/ and libs/doc.
<auto-index-prefix>../../..
<auto-index-prefix>../../..

<dependency>autodoc #
;
Expand Down
1 change: 1 addition & 0 deletions example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import testing ;

project
: requirements
<library>/boost/pool//boost_pool
<library>/boost/system//boost_system
<define>BOOST_ALL_NO_LIB=1
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
Expand Down
10 changes: 5 additions & 5 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

project
: requirements
<library>/boost/serialization//boost_serialization
<library>/boost/pool//boost_pool
<library>/boost/system//boost_system
<define>BOOST_ALL_NO_LIB=1
<warnings>all
Expand All @@ -23,9 +23,9 @@ import os ;
import testing ;

test-suite pool :
[ run test_simple_seg_storage.cpp : : : <toolset>msvc:<cxxflags>-wd4267 ]
[ run test_simple_seg_storage.cpp : : : <library>/boost/random//boost_random <toolset>msvc:<cxxflags>-wd4267 ]
[ run test_pool_alloc.cpp ]
[ run pool_msvc_compiler_bug_test.cpp : : : <toolset>msvc:<cxxflags>-wd4512 ]
[ run pool_msvc_compiler_bug_test.cpp : : : <library>/boost/serialization//boost_serialization <toolset>msvc:<cxxflags>-wd4512 ]
[ run test_msvc_mem_leak_detect.cpp ]
[ run test_bug_3349.cpp ]
[ run test_bug_4960.cpp ]
Expand All @@ -34,9 +34,9 @@ test-suite pool :
<toolset>gcc:<cxxflags>-Wno-long-long
<toolset>pathscale:<cxxflags>-Wno-long-long ]
[ run test_bug_2696.cpp ]
[ run test_bug_5526.cpp ]
[ run test_bug_5526.cpp : : : <library>/boost/smart_ptr//boost_smart_ptr ]
[ run test_bug_6701.cpp ]
[ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread ]
[ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <library>/boost/random//boost_random ]
[ compile test_poisoned_macros.cpp ]
;

Expand Down
Loading