Merge pull request #66 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Mike Wazowski
2024-08-19 02:48:33 +10:00
committed by GitHub
3 changed files with 46 additions and 7 deletions
+33
View File
@@ -0,0 +1,33 @@
# Copyright René Ferdinand Rivera Morell 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/core//boost_core
/boost/function_types//boost_function_types
/boost/lexical_cast//boost_lexical_cast
/boost/math//boost_math_tr1
/boost/mpl//boost_mpl
/boost/optional//boost_optional
/boost/parameter//boost_parameter
/boost/range//boost_range
/boost/spirit//boost_spirit
/boost/type_traits//boost_type_traits ;
project /boost/convert
: common-requirements
<include>include
;
explicit
[ alias boost_convert : : : : <library>$(boost_dependencies) ]
[ alias all : boost_convert example test ]
;
call-if : boost-library convert
;
+1
View File
@@ -8,6 +8,7 @@ import testing ;
project convert_examples
: requirements
<library>/boost/convert//boost_convert
<warnings>on
<toolset>gcc:<warnings>all
<toolset>msvc:<warnings>all
+12 -7
View File
@@ -3,12 +3,17 @@
# Distributed under the Boost Software License, Version 1.0.
# See copy at http://www.boost.org/LICENSE_1_0.txt.
require-b2 5.0.1 ;
import-search /boost/config/checks ;
# bring in the rules for testing
import testing ;
import ../../config/checks/config : requires ;
import config : requires ;
project convert_test
project convert_test
: requirements
<library>/boost/convert//boost_convert
<warnings>on
<toolset>icpc:<cxxflags>"-std=c++11"
<toolset>clang:<cxxflags>"-std=c++11"
@@ -22,9 +27,9 @@ project convert_test
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
<include>../include
;
;
exe convert_test_performance : performance.cpp /boost/timer//boost_timer /boost/chrono//boost_chrono
exe convert_test_performance : performance.cpp /boost/timer//boost_timer /boost/chrono//boost_chrono
: [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ] ;
exe convert_test_performance_spirit : performance_spirit.cpp ;
@@ -38,15 +43,15 @@ run user_type.cpp : : : : convert_test_user_type ;
run str_to_int.cpp : : : : convert_test_str_to_int ;
run sfinae.cpp : : : : convert_test_sfinae ;
run has_member.cpp : : : : convert_test_has_member ;
run printf_converter.cpp :
run printf_converter.cpp :
/boost/test/included_unit_test_framework : : : convert_test_printf_converter ;
run stream_converter.cpp :
/boost/test/included_unit_test_framework : : : convert_test_stream_converter ;
# these tests require C++17
run charconv_converter.cpp
run charconv_converter.cpp
: /boost/test//included_unit_test_framework
:
:
: [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ]
<toolset>gcc:<cxxflags>"-O3 -std=c++17 -Wno-unused-variable -Wno-long-long"
: convert_test_charconv_converter ;