Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:16 -05:00
parent 3ef8cfd02f
commit 788313fda2
2 changed files with 40 additions and 8 deletions

26
build.jam Normal file
View File

@ -0,0 +1,26 @@
# 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/smart_ptr
: common-requirements
<source>/boost/assert//boost_assert
<source>/boost/config//boost_config
<source>/boost/core//boost_core
<source>/boost/move//boost_move
<source>/boost/static_assert//boost_static_assert
<source>/boost/throw_exception//boost_throw_exception
<source>/boost/type_traits//boost_type_traits
<include>include
;
explicit
[ alias boost_smart_ptr ]
[ alias all : boost_smart_ptr test ]
;
call-if : boost-library smart_ptr
;

View File

@ -7,11 +7,17 @@
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
require-b2 5.0.1 ;
import-search /boost/config/checks ;
import config : requires ;
import testing ;
import ../../config/checks/config : requires ;
project
: requirements
<source>/boost/align//boost_align
<source>/boost/container_hash//boost_container_hash
<source>/boost/functional//boost_functional
<source>/boost/smart_ptr//boost_smart_ptr
<toolset>gcc:<cxxflags>-Wno-non-virtual-dtor
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
#<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
@ -79,7 +85,7 @@ run shared_ptr_convertible_test.cpp ;
run wp_convertible_test.cpp ;
run ip_convertible_test.cpp ;
run allocate_shared_test.cpp ;
run sp_atomic_test.cpp ;
run sp_atomic_test.cpp : : : <source>/boost/atomic//boost_atomic ;
run esft_void_test.cpp ;
run esft_second_ptr_test.cpp ;
run make_shared_esft_test.cpp ;
@ -251,7 +257,7 @@ compile make_shared_msvc_test.cpp ;
compile lwm_win32_cs_test.cpp ;
run atomic_sp_test.cpp ;
run atomic_sp_test.cpp : : : <source>/boost/atomic//boost_atomic ;
run sp_constexpr_test.cpp ;
run sp_constexpr_test2.cpp ;
@ -408,19 +414,19 @@ run lsp_hash_test2.cpp ;
local MT = <threading>multi [ requires cxx11_decltype cxx11_noexcept ] <toolset>gcc-4.6:<build>no ;
run atomic_count_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <source>/boost/bind//boost_bind ;
run spinlock_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <source>/boost/bind//boost_bind ;
run spinlock_pool_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <source>/boost/bind//boost_bind ;
run shared_ptr_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <source>/boost/bind//boost_bind ;
run weak_ptr_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <source>/boost/bind//boost_bind ;
compile sp_report_implementation.cpp ;