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. #64

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
42 changes: 42 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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/array//boost_array
/boost/assert//boost_assert
/boost/circular_buffer//boost_circular_buffer
/boost/concept_check//boost_concept_check
/boost/config//boost_config
/boost/core//boost_core
/boost/fusion//boost_fusion
/boost/iterator//boost_iterator
/boost/mpl//boost_mpl
/boost/numeric_conversion//boost_numeric_conversion
/boost/ublas//boost_ublas
/boost/parameter//boost_parameter
/boost/preprocessor//boost_preprocessor
/boost/range//boost_range
/boost/serialization//boost_serialization
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/tuple//boost_tuple
/boost/type_traits//boost_type_traits
/boost/typeof//boost_typeof ;

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

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

call-if : boost-library accumulators
;

28 changes: 14 additions & 14 deletions doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ else
# features shows the dependency relationships between them.
doxygen tagfile
:
../../../boost/accumulators/framework/depends_on.hpp
../../../boost/accumulators/framework/extractor.hpp
../include/boost/accumulators/framework/depends_on.hpp
../include/boost/accumulators/framework/extractor.hpp
:
<doxygen:param>MACRO_EXPANSION=YES
<doxygen:param>EXPAND_ONLY_PREDEF=YES
Expand All @@ -68,10 +68,10 @@ doxygen tagfile

doxygen accdoc
:
[ glob ../../../boost/accumulators/accumulators*.hpp ]
[ glob ../../../boost/accumulators/framework/*.hpp ]
[ glob ../../../boost/accumulators/framework/parameters/*.hpp ]
[ glob ../../../boost/accumulators/framework/accumulators/*.hpp ]
[ glob ../include/boost/accumulators/accumulators*.hpp ]
[ glob ../include/boost/accumulators/framework/*.hpp ]
[ glob ../include/boost/accumulators/framework/parameters/*.hpp ]
[ glob ../include/boost/accumulators/framework/accumulators/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=YES
<doxygen:param>"PREDEFINED=\"BOOST_ACCUMULATORS_DOXYGEN_INVOKED=1\" \\
Expand All @@ -97,9 +97,9 @@ doxygen accdoc
# generate .png images for the LaTeX formulas embedded in the doc comments.
doxygen statsdoc.html
:
[ glob ../../../boost/accumulators/statistics*.hpp ]
[ glob ../../../boost/accumulators/statistics/*.hpp ]
[ glob ../../../boost/accumulators/statistics/variates/*.hpp ]
[ glob ../include/boost/accumulators/statistics*.hpp ]
[ glob ../include/boost/accumulators/statistics/*.hpp ]
[ glob ../include/boost/accumulators/statistics/variates/*.hpp ]
:
<dependency>latex.check
<dependency>dvips.check
Expand Down Expand Up @@ -141,9 +141,9 @@ make statsdoclatex.tag

doxygen statsdoc
:
[ glob ../../../boost/accumulators/statistics*.hpp ]
[ glob ../../../boost/accumulators/statistics/*.hpp ]
[ glob ../../../boost/accumulators/statistics/variates/*.hpp ]
[ glob ../include/boost/accumulators/statistics*.hpp ]
[ glob ../include/boost/accumulators/statistics/*.hpp ]
[ glob ../include/boost/accumulators/statistics/variates/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=YES
<doxygen:param>"PREDEFINED=\"BOOST_ACCUMULATORS_DOXYGEN_INVOKED=1\" \\
Expand Down Expand Up @@ -171,8 +171,8 @@ doxygen statsdoc

doxygen opdoc
:
[ glob ../../../boost/accumulators/numeric/functional.hpp ]
[ glob ../../../boost/accumulators/numeric/functional/*.hpp ]
[ glob ../include/boost/accumulators/numeric/functional.hpp ]
[ glob ../include/boost/accumulators/numeric/functional/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=YES
<doxygen:param>"PREDEFINED=\"BOOST_NUMERIC_FUNCTIONAL_DOXYGEN_INVOKED=1\" \\
Expand Down
8 changes: 4 additions & 4 deletions example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ exe example
:
main.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
<library>/boost/serialization
<cxxflags>"-Wno-deprecated-declarations"
<library>/boost/accumulators//boost_accumulators
<library>/boost/foreach//boost_foreach
<toolset>gcc:<cxxflags>"-Wno-deprecated-declarations"
<toolset>clang:<cxxflags>"-Wno-deprecated-declarations"
;
8 changes: 4 additions & 4 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ project
: default-build
<link>static
: requirements
<library>/boost/test//boost_unit_test_framework
<include>../../..
<library>/boost/accumulators//boost_accumulators
<library>/boost/test//boost_unit_test_framework/<link>static
<library>/boost/random//boost_random
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
# MSVC's iterator debugging causes some tests to run forever.
<toolset>msvc:<iterator_debugging>off
<toolset>intel-win:<iterator_debugging>off
<toolset>gcc:<cxxflags>"-Wno-deprecated-declarations"
<toolset>clang:<cxxflags>"-Wno-deprecated-declarations"
<toolset>intel-linux:<cxxflags>"-Wno-deprecated-declarations"
<library>/boost/serialization
;

alias accumulators_regular_tests
Expand Down Expand Up @@ -57,7 +57,7 @@ alias accumulators_regular_tests
[ run skewness.cpp ]
[ run sum.cpp ]
[ run sum_kahan.cpp ]
[ run tail.cpp ]
[ run tail.cpp : : : <library>/boost/foreach//boost_foreach ]
[ run tail_mean.cpp ]
[ run tail_quantile.cpp ]
[ run variance.cpp ]
Expand Down
Loading