Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:33:30 -05:00
committed by Jim King
parent 8e20aa1462
commit 1e9aa506d0
4 changed files with 37 additions and 16 deletions

11
Jamfile
View File

@@ -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 ;

27
build.jam Normal file
View File

@@ -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
<source>/boost/assert//boost_assert
<source>/boost/config//boost_config
<source>/boost/container_hash//boost_container_hash
<source>/boost/core//boost_core
<source>/boost/integer//boost_integer
<source>/boost/move//boost_move
<source>/boost/static_assert//boost_static_assert
<source>/boost/throw_exception//boost_throw_exception
<include>include
;
explicit
[ alias boost_dynamic_bitset ]
[ alias all : boost_dynamic_bitset example test ]
;
call-if : boost-library dynamic_bitset
;

View File

@@ -9,7 +9,8 @@
exe timing_tests
: timing_tests.cpp
../../timer/build//boost_timer
/boost/timer//boost_timer
/boost/detail//boost_detail
;
exe example1

View File

@@ -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 : : : <library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests2.cpp : : : <library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests3.cpp : : : <library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests1.cpp : : : <library>/boost/filesystem//boost_filesystem
<library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests2.cpp : : : <library>/boost/filesystem//boost_filesystem
<library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests3.cpp : : : <library>/boost/filesystem//boost_filesystem
<library>/boost/system//boost_system ]
[ run dyn_bitset_unit_tests4.cpp : : : <library>/boost/filesystem//boost_filesystem
<library>/boost/system//boost_system ]
[ run test_ambiguous_set.cpp ]
@@ -36,6 +39,7 @@ if ! [ os.environ UBSAN_OPTIONS ]
[ run dyn_bitset_unit_tests5.cpp
: : : <define>_SCL_SECURE_NO_WARNINGS=1
<library>/boost/filesystem//boost_filesystem
<library>/boost/serialization//boost_serialization
<library>/boost/system//boost_system ]
;