diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..83a486a --- /dev/null +++ b/build.jam @@ -0,0 +1,26 @@ +# 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/config//boost_config + /boost/container_hash//boost_container_hash + /boost/core//boost_core + /boost/throw_exception//boost_throw_exception ; + +project /boost/type_index + : common-requirements + include + ; + +explicit + [ alias boost_type_index : : : : $(boost_dependencies) ] + [ alias all : boost_type_index test ] + ; + +call-if : boost-library type_index + ; + diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index c254570..1177b3f 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -9,9 +9,9 @@ import doxygen ; doxygen autodoc : - [ glob ../../../boost/type_index.hpp ] - [ glob ../../../boost/type_index/*.hpp ] - [ glob ../../../boost/type_index/runtime_cast/*.hpp ] + [ glob ../include/boost/type_index.hpp ] + [ glob ../include/boost/type_index/*.hpp ] + [ glob ../include/boost/type_index/runtime_cast/*.hpp ] : EXTRACT_ALL=NO HIDE_UNDOC_MEMBERS=YES diff --git a/examples/user_defined_typeinfo.cpp b/examples/user_defined_typeinfo.cpp index fe73b7d..889b0ae 100644 --- a/examples/user_defined_typeinfo.cpp +++ b/examples/user_defined_typeinfo.cpp @@ -14,7 +14,7 @@ */ // BOOST_TYPE_INDEX_USER_TYPEINDEX must be defined *BEFORE* first inclusion of -#define BOOST_TYPE_INDEX_USER_TYPEINDEX +#define BOOST_TYPE_INDEX_USER_TYPEINDEX #include //] [/type_index_my_type_index_worldwide_macro] diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index adc8cb2..c364374 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -4,15 +4,18 @@ # 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-search /boost/config/checks ; +import config : requires ; import testing ; import feature ; import os ; -import ../../config/checks/config : requires ; - project : source-location . : requirements + /boost/type_index//boost_type_index [ requires cxx11_rvalue_references ] ; @@ -46,11 +49,11 @@ lib test_lib_rtti_compat : test_lib_rtti_compat-obj : shared $(nortti) $(c exe testing_crossmodule_anonymous_no_rtti : testing_crossmodule_anonymous.cpp test_lib_anonymous_nortti : off $(norttidefines) ; test-suite type_index - : - [ run type_index_test.cpp ] - [ run type_index_runtime_cast_test.cpp ] + : + [ run type_index_test.cpp /boost/lexical_cast//boost_lexical_cast ] + [ run type_index_runtime_cast_test.cpp /boost/smart_ptr//boost_smart_ptr ] [ run type_index_constexpr_test.cpp ] - [ run type_index_test.cpp : : : off $(norttidefines) : type_index_test_no_rtti ] + [ run type_index_test.cpp /boost/lexical_cast//boost_lexical_cast : : : off $(norttidefines) : type_index_test_no_rtti ] [ run ctti_print_name.cpp : : : always_show_run_output ] [ run testing_crossmodule.cpp test_lib_rtti ] [ run testing_crossmodule.cpp test_lib_nortti : : : off $(norttidefines) : testing_crossmodule_no_rtti ] @@ -65,25 +68,25 @@ test-suite type_index # Mixing RTTI on and off # MSVC sometimes overrides the /GR-, without `detect_missmatch` this test may link. - # TODO: Disabled on MSVC. Enable again when there'll be an understanding of how to write this test correctly wor MSVC. + # TODO: Disabled on MSVC. Enable again when there'll be an understanding of how to write this test correctly wor MSVC. [ link-fail testing_crossmodule.cpp test_lib_rtti : $(nortti) msvc:no : link_fail_nortti_rtti ] [ link-fail testing_crossmodule.cpp test_lib_nortti : msvc:no : link_fail_rtti_nortti ] [ run testing_crossmodule.cpp test_lib_rtti_compat : : : $(nortti) $(compat) : testing_crossmodule_nortti_rtti_compat ] [ run testing_crossmodule.cpp test_lib_nortti_compat : : : $(compat) : testing_crossmodule_rtti_nortti_compat ] ; - -# Assuring that examples compile and run. Adding sources from `examples` directory to the `type_index` test suite. + +# Assuring that examples compile and run. Adding sources from `examples` directory to the `type_index` test suite. for local p in [ glob ../examples/*.cpp ] { # RTTI on - type_index += [ run $(p) ] ; + type_index += [ run $(p) /boost/unordered//boost_unordered : : : ../examples ] ; # RTTI off local target_name = $(p[1]:B)_no_rtti ; if $(target_name) != "table_of_names_no_rtti" { - type_index += [ run $(p) : : : off $(norttidefines) : $(target_name) ] ; + type_index += [ run $(p) /boost/unordered//boost_unordered : : : ../examples off $(norttidefines) : $(target_name) ] ; } }