Skip to content

Commit

Permalink
Merge pull request #66 from grafikrobot/modular
Browse files Browse the repository at this point in the history
Add support for modular build structure.
  • Loading branch information
yet-another-user authored Aug 18, 2024
2 parents 5bb638d + 696c243 commit 6e2419c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
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 ;

0 comments on commit 6e2419c

Please sign in to comment.