From 89515ee6046bcc598412f07cc3c71003be138ade Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:38:17 -0500 Subject: [PATCH] Make the library modular usable. --- build.jam | 31 +++++++++++++++++++++++++++++++ test/Jamfile.v2 | 18 +++++++++++++----- 2 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..058c6ceb --- /dev/null +++ b/build.jam @@ -0,0 +1,31 @@ +# 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/unordered + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/container_hash//boost_container_hash + /boost/core//boost_core + /boost/move//boost_move + /boost/mp11//boost_mp11 + /boost/predef//boost_predef + /boost/preprocessor//boost_preprocessor + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + /boost/tuple//boost_tuple + /boost/type_traits//boost_type_traits + include + ; + +explicit + [ alias boost_unordered ] + [ alias all : boost_unordered test ] + ; + +call-if : boost-library unordered + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index fc452148..6f2cc812 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -7,7 +7,7 @@ import path ; import regex ; import testing ; -import ../../config/checks/config : requires ; +import config : requires ; path-constant TOP : . ; @@ -20,6 +20,9 @@ local msvc-flags = /wd4494 ; project : requirements + /boost/concept_check//boost_concept_check + /boost/compat//boost_compat + /boost/iterator//boost_iterator pedantic intel:on @@ -146,7 +149,7 @@ run unordered/serialization_tests.cpp gcc:space clang:on clang:space - /boost//serialization/off ; + /boost/serialization//boost_serialization/off ; compile-fail unordered/insert_node_type_fail.cpp : UNORDERED_TEST_MAP : insert_node_type_fail_map ; compile-fail unordered/insert_node_type_fail.cpp : UNORDERED_TEST_MULTIMAP : insert_node_type_fail_multimap ; @@ -247,7 +250,7 @@ run unordered/serialization_tests.cpp gcc:space clang:on clang:space - /boost//serialization/off + /boost/serialization//boost_serialization/off : foa_serialization_tests ; local FOA_EXCEPTION_TESTS = @@ -282,7 +285,12 @@ local MMAP_CONTAINERS = for local container in $(MMAP_CONTAINERS) { - run unordered/mmap_tests.cpp /boost/filesystem//boost_filesystem : : + run unordered/mmap_tests.cpp + /boost/filesystem//boost_filesystem + /boost/interprocess//boost_interprocess + /boost/process//boost_process + /boost/uuid//boost_uuid + : : : BOOST_UNORDERED_FOA_MMAP_MAP_TYPE="boost::$(container)" off static @@ -351,7 +359,7 @@ run cfoa/serialization_tests.cpp gcc:space clang:on clang:space - /boost//serialization/off + /boost/serialization//boost_serialization/off : cfoa_serialization_tests ; alias cfoa_tests :