Merge pull request #109 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Andrey Semashev 2025-04-13 17:39:40 +03:00 committed by GitHub
commit ec297bfdfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 37 additions and 6 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/io//boost_io
/boost/preprocessor//boost_preprocessor
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits ;
project /boost/utility
: common-requirements
<include>include
;
explicit
[ alias boost_utility : : : : <library>$(boost_dependencies) ]
[ alias all : boost_utility test ]
;
call-if : boost-library utility
;

View File

@ -8,7 +8,7 @@ import quickbook ;
project boost/libs/utility/doc ;
path-constant INCLUDES : ../../.. ;
path-constant INCLUDES : ../include ;
path-constant boost-images : ../../../doc/src/images ;
# Generate XML doxygen reference for base_from_member component in base_from_member_reference.xml

View File

@ -8,7 +8,7 @@
import quickbook ;
using boostbook ;
doxygen reference : ../../../../boost/utility/identity_type.hpp
doxygen reference : ../../include/boost/utility/identity_type.hpp
: <reftitle>"Reference"
<doxygen:param>PREDEFINED="DOXYGEN"
<doxygen:param>QUIET=YES

View File

@ -8,12 +8,14 @@
# bring in rules for testing
import testing ;
project : requirements <library>/boost/utility//boost_utility ;
run base_from_member_test.cpp ;
run base_from_member_ref_test.cpp ;
run binary_test.cpp ;
run call_traits_test.cpp : -u ;
run call_traits_test.cpp : -u : : <library>/boost/type_traits//testing ;
run compressed_pair_test.cpp ;
run compressed_pair_final_test.cpp ;
@ -31,7 +33,7 @@ run string_ref_test2.cpp ;
run string_ref_test_io.cpp ;
# compile-fail string_view_from_rvalue.cpp ;
compile string_view_constexpr_test1.cpp ;
run string_view_test1.cpp ;
run string_view_test1.cpp : : : <library>/boost/container_hash//boost_container_hash ;
run string_view_test2.cpp ;
run string_view_test_io.cpp ;

View File

@ -18,8 +18,8 @@
#include <typeinfo>
#include <boost/call_traits.hpp>
#include <libs/type_traits/test/test.hpp>
#include <libs/type_traits/test/check_type.hpp>
// type_traits/test utilities
#include "check_type.hpp"
#ifdef BOOST_MSVC
#pragma warning(disable:4181) // : warning C4181: qualifier applied to reference type; ignored