diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..00ac297 --- /dev/null +++ b/build.jam @@ -0,0 +1,34 @@ +# 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/fusion//boost_fusion + /boost/iterator//boost_iterator + /boost/mp11//boost_mp11 + /boost/mpl//boost_mpl + /boost/preprocessor//boost_preprocessor + /boost/smart_ptr//boost_smart_ptr + /boost/throw_exception//boost_throw_exception + /boost/type_traits//boost_type_traits + /boost/typeof//boost_typeof + /boost/vmd//boost_vmd ; + +project /boost/type_erasure + ; + +explicit + [ alias boost_type_erasure : build//boost_type_erasure ] + [ alias all : boost_type_erasure example test ] + ; + +call-if : boost-library type_erasure + : install boost_type_erasure + ; + diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 3a77b5e..2b7f04c 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -6,12 +6,17 @@ # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -project /boost/type_erasure +constant boost_dependencies_private : + /boost/thread//boost_thread + ; + +project : source-location ../src + : common-requirements ../include $(boost_dependencies) : requirements shared:BOOST_TYPE_ERASURE_DYN_LINK + $(boost_dependencies_private) : usage-requirements shared:BOOST_TYPE_ERASURE_DYN_LINK + BOOST_TYPE_ERASURE_NO_LIB=1 ; -lib boost_type_erasure : dynamic_binding.cpp /boost//thread ; - -boost-install boost_type_erasure ; +lib boost_type_erasure : dynamic_binding.cpp /boost/thread//boost_thread ; diff --git a/doc/Jamfile.jam b/doc/Jamfile.jam index 2e586b2..b32a299 100644 --- a/doc/Jamfile.jam +++ b/doc/Jamfile.jam @@ -26,7 +26,7 @@ xml type_erasure : type_erasure.qbk : reference ; doxygen reference : - [ glob ../../../boost/type_erasure/*.hpp ] + [ glob ../include/boost/type_erasure/*.hpp ] : EXPAND_ONLY_PREDEF=YES "ALIASES= \\ diff --git a/example/Jamfile.jam b/example/Jamfile.jam index d96922f..dcff1f5 100644 --- a/example/Jamfile.jam +++ b/example/Jamfile.jam @@ -8,6 +8,8 @@ import testing ; +project : requirements /boost/type_erasure//boost_type_erasure ; + compile basic.cpp ; compile multi.cpp ; compile convert.cpp ; @@ -21,4 +23,4 @@ compile associated.cpp ; run print_sequence.cpp ; run printf.cpp ; -run multifunction.cpp ; +run multifunction.cpp /boost/variant//boost_variant /boost/phoenix//boost_phoenix ; diff --git a/test/Jamfile.jam b/test/Jamfile.jam index ae030ab..5b76778 100644 --- a/test/Jamfile.jam +++ b/test/Jamfile.jam @@ -7,42 +7,45 @@ # http://www.boost.org/LICENSE_1_0.txt) import testing ; -import ../../../libs/config/checks/config ; +import-search /boost/config/checks ; +import config ; -run test_binding.cpp /boost//unit_test_framework ; -run test_increment.cpp /boost//unit_test_framework ; -run test_add.cpp /boost//unit_test_framework ; -run test_add_assign.cpp /boost//unit_test_framework ; -run test_callable.cpp /boost//unit_test_framework ; -run test_reference.cpp /boost//unit_test_framework ; -run test_construct.cpp /boost//unit_test_framework ; -run test_relaxed.cpp /boost//unit_test_framework ; -run test_assign.cpp /boost//unit_test_framework : : : +project : requirements /boost/type_erasure//boost_type_erasure ; + +run test_binding.cpp /boost/test//boost_unit_test_framework ; +run test_increment.cpp /boost/test//boost_unit_test_framework ; +run test_add.cpp /boost/test//boost_unit_test_framework ; +run test_add_assign.cpp /boost/test//boost_unit_test_framework ; +run test_callable.cpp /boost/test//boost_unit_test_framework ; +run test_reference.cpp /boost/test//boost_unit_test_framework ; +run test_construct.cpp /boost/test//boost_unit_test_framework ; +run test_relaxed.cpp /boost/test//boost_unit_test_framework ; +run test_assign.cpp /boost/test//boost_unit_test_framework : : : gcc,windows:-Wa,-mbig-obj gcc,windows,debug:no ; -run test_construct_ref.cpp /boost//unit_test_framework ; -run test_construct_cref.cpp /boost//unit_test_framework ; -run test_any_cast.cpp /boost//unit_test_framework ; -run test_binding_of.cpp /boost//unit_test_framework ; -run test_typeid_of.cpp /boost//unit_test_framework ; -run test_nested.cpp /boost//unit_test_framework ; -run test_less.cpp /boost//unit_test_framework ; -run test_equal.cpp /boost//unit_test_framework ; -run test_negate.cpp /boost//unit_test_framework ; -run test_dereference.cpp /boost//unit_test_framework ; -run test_subscript.cpp /boost//unit_test_framework ; -run test_forward_iterator.cpp /boost//unit_test_framework ; -run test_tuple.cpp /boost//unit_test_framework ; -run test_stream.cpp /boost//unit_test_framework ; -run test_deduced.cpp /boost//unit_test_framework ; -run test_same_type.cpp /boost//unit_test_framework ; -run test_member.cpp /boost//unit_test_framework ; -run test_null.cpp /boost//unit_test_framework ; -run test_free.cpp /boost//unit_test_framework ; -run test_is_empty.cpp /boost//unit_test_framework ; -run test_dynamic_any_cast.cpp /boost//unit_test_framework /boost//type_erasure ; -run test_limits.cpp /boost//unit_test_framework +run test_construct_ref.cpp /boost/test//boost_unit_test_framework ; +run test_construct_cref.cpp /boost/test//boost_unit_test_framework ; +run test_any_cast.cpp /boost/test//boost_unit_test_framework ; +run test_binding_of.cpp /boost/test//boost_unit_test_framework ; +run test_typeid_of.cpp /boost/test//boost_unit_test_framework ; +run test_nested.cpp /boost/test//boost_unit_test_framework ; +run test_less.cpp /boost/test//boost_unit_test_framework ; +run test_equal.cpp /boost/test//boost_unit_test_framework ; +run test_negate.cpp /boost/test//boost_unit_test_framework ; +run test_dereference.cpp /boost/test//boost_unit_test_framework ; +run test_subscript.cpp /boost/test//boost_unit_test_framework ; +run test_forward_iterator.cpp /boost/test//boost_unit_test_framework ; +run test_tuple.cpp /boost/test//boost_unit_test_framework ; +run test_stream.cpp /boost/test//boost_unit_test_framework ; +run test_deduced.cpp /boost/test//boost_unit_test_framework ; +run test_same_type.cpp /boost/test//boost_unit_test_framework ; +run test_member.cpp /boost/test//boost_unit_test_framework ; +run test_null.cpp /boost/test//boost_unit_test_framework ; +run test_free.cpp /boost/test//boost_unit_test_framework ; +run test_is_empty.cpp /boost/test//boost_unit_test_framework ; +run test_dynamic_any_cast.cpp /boost/test//boost_unit_test_framework /boost/type_erasure//boost_type_erasure ; +run test_limits.cpp /boost/test//boost_unit_test_framework : requirements [ config.requires cxx11_rvalue_references cxx11_template_aliases