From 948578d5b4f3c02595f162a512279b639dfc221b Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:33:41 -0500 Subject: [PATCH] Make the library modular usable. --- build.jam | 27 +++++++++++++++++++++++++++ build/Jamfile.v2 | 3 +-- example/Jamfile | 2 +- test/Jamfile.v2 | 6 +++--- 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..e58bf7b --- /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/exception + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/core//boost_core + /boost/smart_ptr//boost_smart_ptr + /boost/throw_exception//boost_throw_exception + /boost/tuple//boost_tuple + /boost/type_traits//boost_type_traits + include + ; + +explicit + [ alias boost_exception : build//boost_exception ] + [ alias all : boost_exception example test ] + ; + +call-if : boost-library exception + : install boost_exception + ; diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index fb47659..da214ff 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -5,10 +5,9 @@ # 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) -project boost/exception +project : source-location ../src : requirements static ; lib boost_exception : clone_current_exception_non_intrusive.cpp ; -boost-install boost_exception ; diff --git a/example/Jamfile b/example/Jamfile index 44e18bf..1040b8f 100644 --- a/example/Jamfile +++ b/example/Jamfile @@ -9,7 +9,7 @@ exe example_io : example_io.cpp ; obj error_info_1 : error_info_1.cpp ; obj error_info_2 : error_info_2.cpp ; obj cloning_1 : cloning_1.cpp ; -obj cloning_2 : cloning_2.cpp : multi ; +# obj cloning_2 : cloning_2.cpp /boost/thread//boost_thread : multi ; obj info_tuple : info_tuple.cpp ; obj enable_error_info : enable_error_info.cpp ; obj logging : logging.cpp ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 683b14b..0374f1b 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -22,7 +22,7 @@ run 2-throw_exception_no_exceptions_test.cpp : : : off ; run 3-throw_exception_no_integration_test.cpp : : : on ; run 4-throw_exception_no_both_test.cpp : : : off ; run cloning_test.cpp : : : on ; -run copy_exception_test.cpp ../../thread/src/tss_null.cpp /boost//thread : : : multi on ; +# run copy_exception_test.cpp ../../thread/src/tss_null.cpp /boost/thread//boost_thread : : : multi on ; run copy_exception_no_exceptions_test.cpp : : : off on ; run unknown_exception_test.cpp : : : on ; run exception_test.cpp : : : on ; @@ -39,8 +39,8 @@ run refcount_ptr_test.cpp ; run current_exception_cast_test.cpp : : : on ; run no_exceptions_test.cpp : : : off ; run errinfos_test.cpp : : : on ; -run exception_ptr_test.cpp/BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR ../../thread/src/tss_null.cpp /boost/exception /boost//thread : : : multi on : non_intrusive_exception_ptr_test ; -run exception_ptr_test.cpp ../../thread/src/tss_null.cpp /boost//thread : : : multi on ; +# run exception_ptr_test.cpp/BOOST_ENABLE_NON_INTRUSIVE_EXCEPTION_PTR ../../thread/src/tss_null.cpp /boost/exception//boost_exception /boost/thread//boost_thread : : : multi on : non_intrusive_exception_ptr_test ; +# run exception_ptr_test.cpp ../../thread/src/tss_null.cpp /boost/thread//boost_thread : : : multi on ; run exception_ptr_test2.cpp ; lib visibility_test_lib : visibility_test_lib.cpp : hidden on ;