From 1c17646cd0f6b4ba70534b6d95803faa14d8edb1 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:31:01 -0500 Subject: [PATCH] Make the library modular usable. --- Jamfile | 11 ----------- build.jam | 25 +++++++++++++++++++++++++ build/Jamfile.v2 | 4 +--- test/Jamfile.v2 | 5 +++++ 4 files changed, 31 insertions(+), 14 deletions(-) delete mode 100644 Jamfile create mode 100644 build.jam diff --git a/Jamfile b/Jamfile deleted file mode 100644 index c55393e..0000000 --- a/Jamfile +++ /dev/null @@ -1,11 +0,0 @@ -# Boost.Container Library Jamfile -# -# Copyright (c) 2018 Ion Gaztanaga -# -# 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..888f78a --- /dev/null +++ b/build.jam @@ -0,0 +1,25 @@ +# 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/container + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/intrusive//boost_intrusive + /boost/move//boost_move + /boost/static_assert//boost_static_assert + include + ; + +explicit + [ alias boost_container : build//boost_container ] + [ alias all : boost_container example test ] + ; + +call-if : boost-library container + : install boost_container + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 3adb451..bdfbeb5 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -6,7 +6,7 @@ import sequence ; -project boost/container +project : source-location ../src : usage-requirements # pass these requirement to dependents (i.e. users) shared:BOOST_CONTAINER_DYN_LINK=1 @@ -18,5 +18,3 @@ lib boost_container : shared:BOOST_CONTAINER_DYN_LINK=1 static:BOOST_CONTAINER_STATIC_LINK=1 ; - -boost-install boost_container ; \ No newline at end of file diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 2b4995b..5acb3c7 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -13,6 +13,11 @@ project : requirements + /boost/algorithm//boost_algorithm + /boost/iterator//boost_iterator + /boost/utility//boost_utility + /boost/tuple//boost_tuple + shared:BOOST_CONTAINER_DYN_LINK=1 gcc-cygwin:static ;