From 1e9aa506d0af64ebf71b987dad95c1a79cfd01bc Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:33:30 -0500 Subject: [PATCH] Make the library modular usable. --- Jamfile | 11 ----------- build.jam | 27 +++++++++++++++++++++++++++ example/Jamfile | 3 ++- test/Jamfile.v2 | 12 ++++++++---- 4 files changed, 37 insertions(+), 16 deletions(-) delete mode 100644 Jamfile create mode 100644 build.jam diff --git a/Jamfile b/Jamfile deleted file mode 100644 index 8f6db43..0000000 --- a/Jamfile +++ /dev/null @@ -1,11 +0,0 @@ -# Boost.DynamicBitset Library Jamfile -# -# Copyright (c) 2018 James E. King III -# -# Use, modification, and distribution are subject to 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) - -# please order by name to ease maintenance -build-project example ; -build-project test ; diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..5156450 --- /dev/null +++ b/build.jam @@ -0,0 +1,27 @@ +# Copyright René Ferdinand Rivera Morell 2023 +# 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) + +import project ; + +project /boost/dynamic_bitset + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/container_hash//boost_container_hash + /boost/core//boost_core + /boost/integer//boost_integer + /boost/move//boost_move + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + include + ; + +explicit + [ alias boost_dynamic_bitset ] + [ alias all : boost_dynamic_bitset example test ] + ; + +call-if : boost-library dynamic_bitset + ; diff --git a/example/Jamfile b/example/Jamfile index 6b4b0f3..8093ca9 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -9,7 +9,8 @@ exe timing_tests : timing_tests.cpp - ../../timer/build//boost_timer + /boost/timer//boost_timer + /boost/detail//boost_detail ; exe example1 diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 91f91de..4e38eac 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -9,13 +9,16 @@ import os ; # import rules for testing conditional on config file variables -import ../../config/checks/config : requires ; +import config : requires ; test-suite dynamic_bitset : - [ run dyn_bitset_unit_tests1.cpp : : : /boost/system//boost_system ] - [ run dyn_bitset_unit_tests2.cpp : : : /boost/system//boost_system ] - [ run dyn_bitset_unit_tests3.cpp : : : /boost/system//boost_system ] + [ run dyn_bitset_unit_tests1.cpp : : : /boost/filesystem//boost_filesystem + /boost/system//boost_system ] + [ run dyn_bitset_unit_tests2.cpp : : : /boost/filesystem//boost_filesystem + /boost/system//boost_system ] + [ run dyn_bitset_unit_tests3.cpp : : : /boost/filesystem//boost_filesystem + /boost/system//boost_system ] [ run dyn_bitset_unit_tests4.cpp : : : /boost/filesystem//boost_filesystem /boost/system//boost_system ] [ run test_ambiguous_set.cpp ] @@ -36,6 +39,7 @@ if ! [ os.environ UBSAN_OPTIONS ] [ run dyn_bitset_unit_tests5.cpp : : : _SCL_SECURE_NO_WARNINGS=1 + /boost/filesystem//boost_filesystem /boost/serialization//boost_serialization /boost/system//boost_system ] ;