Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #66

Merged
merged 8 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions example/jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 12 additions & 7 deletions test/jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 ;

Expand All @@ -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 ;
Loading