From 5c34125b142439f1c6b1ee646183d2a673b321f6 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 | 22 ++++++++++++++++++++++ test/Jamfile | 8 ++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..bfbd74c --- /dev/null +++ b/build.jam @@ -0,0 +1,22 @@ +# 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/variant2 + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/mp11//boost_mp11 + include + ; + +explicit + [ alias boost_variant2 ] + [ alias all : boost_variant2 test ] + ; + +call-if : boost-library variant2 + ; diff --git a/test/Jamfile b/test/Jamfile index 85788b9..271279e 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -7,7 +7,7 @@ # http://www.boost.org/LICENSE_1_0.txt import testing ; -import ../../config/checks/config : requires ; +import config : requires ; project : default-build @@ -15,12 +15,16 @@ project extra : requirements + /boost/config//boost_config + /boost/container_hash//boost_container_hash + /boost/core//boost_core [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr ] msvc:on gcc:on clang:on + ; run quick.cpp ; @@ -127,7 +131,7 @@ run variant_visit_by_index.cpp ; run variant_ostream_insert.cpp ; run is_output_streamable.cpp ; -local JSON = /boost//json/off "msvc-14.0:no" "msvc-14.2:-wd5104" "norecover:static" ; +local JSON = /boost/json//boost_json/off "msvc-14.0:no" "msvc-14.2:-wd5104" "norecover:static" ; run variant_json_value_from.cpp : : : $(JSON) ; run variant_json_value_to.cpp : : : $(JSON) ;