mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 20:17:21 +02:00
Merge pull request #125 from grafikrobot/modular
Add support for modular build structure.
This commit is contained in:
26
build.jam
Normal file
26
build.jam
Normal file
@ -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/assert//boost_assert
|
||||
/boost/config//boost_config
|
||||
/boost/core//boost_core
|
||||
/boost/move//boost_move
|
||||
/boost/static_assert//boost_static_assert
|
||||
/boost/throw_exception//boost_throw_exception
|
||||
/boost/type_traits//boost_type_traits ;
|
||||
|
||||
project /boost/optional ;
|
||||
|
||||
explicit
|
||||
[ alias boost_optional : : : : <library>$(boost_dependencies) <include>include ]
|
||||
[ alias all : boost_optional test ]
|
||||
;
|
||||
|
||||
call-if : boost-library optional
|
||||
;
|
||||
|
@ -19,6 +19,7 @@ import testing ;
|
||||
|
||||
project
|
||||
: requirements
|
||||
<library>/boost/optional//boost_optional
|
||||
[ requires
|
||||
cxx11_decltype
|
||||
cxx11_defaulted_functions
|
||||
@ -32,7 +33,7 @@ project
|
||||
;
|
||||
|
||||
|
||||
run optional_test.cpp ;
|
||||
run optional_test.cpp : : : <library>/boost/bind//boost_bind <library>/boost/mpl//boost_mpl ;
|
||||
run optional_test_assign.cpp ;
|
||||
run optional_test_swap.cpp ;
|
||||
compile optional_test_wuninitialized.cpp ;
|
||||
@ -44,7 +45,7 @@ run optional_test_make_optional.cpp ;
|
||||
run optional_test_flat_map.cpp ;
|
||||
run optional_test_hash.cpp ;
|
||||
run optional_test_map.cpp ;
|
||||
run optional_test_tie.cpp ;
|
||||
run optional_test_tie.cpp : : : <library>/boost/tuple//boost_tuple ;
|
||||
run optional_test_ref_assign_portable_minimum.cpp ;
|
||||
run optional_test_ref_assign_mutable_int.cpp ;
|
||||
run optional_test_ref_assign_const_int.cpp ;
|
||||
|
Reference in New Issue
Block a user