Merge branch 'modular' of https://github.com/grafikrobot/boostorg.smart_ptr into feature/modular-b2

This commit is contained in:
Peter Dimov
2024-08-27 19:06:55 +03:00
2 changed files with 42 additions and 8 deletions

29
build.jam Normal file
View File

@ -0,0 +1,29 @@
# Copyright René Ferdinand Rivera Morell 2023-2024
# 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)
require-b2 5.2 ;
constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/move//boost_move
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits ;
project /boost/smart_ptr
: common-requirements
<include>include
;
explicit
[ alias boost_smart_ptr : : : : <library>$(boost_dependencies) ]
[ alias all : boost_smart_ptr test ]
;
call-if : boost-library smart_ptr
;

View File

@ -7,11 +7,16 @@
# 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
<library>/boost/align//boost_align
<library>/boost/container_hash//boost_container_hash
<library>/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 +84,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 : : : <library>/boost/atomic//boost_atomic ;
run esft_void_test.cpp ;
run esft_second_ptr_test.cpp ;
run make_shared_esft_test.cpp ;
@ -251,7 +256,7 @@ compile make_shared_msvc_test.cpp ;
compile lwm_win32_cs_test.cpp ;
run atomic_sp_test.cpp ;
run atomic_sp_test.cpp : : : <library>/boost/atomic//boost_atomic ;
run sp_constexpr_test.cpp ;
run sp_constexpr_test2.cpp ;
@ -408,19 +413,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) <library>/boost/bind//boost_bind ;
run spinlock_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <library>/boost/bind//boost_bind ;
run spinlock_pool_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <library>/boost/bind//boost_bind ;
run shared_ptr_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <library>/boost/bind//boost_bind ;
run weak_ptr_mt_test.cpp
: : : $(MT) ;
: : : $(MT) <library>/boost/bind//boost_bind ;
compile sp_report_implementation.cpp ;