Merge pull request #17 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Peter Dimov
2025-05-02 19:19:45 +03:00
committed by GitHub
4 changed files with 36 additions and 3 deletions

25
build.jam Normal file
View File

@@ -0,0 +1,25 @@
# 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/config//boost_config
/boost/function//boost_function
/boost/preprocessor//boost_preprocessor
/boost/type_traits//boost_type_traits
/boost/typeof//boost_typeof ;
project /boost/scope_exit
;
explicit
[ alias boost_scope_exit : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_scope_exit example test ]
;
call-if : boost-library scope_exit
;

View File

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

View File

@@ -9,7 +9,8 @@
import testing ;
# Sun does not automatically detect type-of emulation mode (force it).
project : requirements <toolset>sun:<define>BOOST_TYPEOF_EMULATION ;
project : requirements <toolset>sun:<define>BOOST_TYPEOF_EMULATION
<library>/boost/scope_exit//boost_scope_exit ;
run try_catch.cpp ;
run try_catch_seq.cpp ;

View File

@@ -7,7 +7,14 @@
# Home at http://www.boost.org/libs/scope_exit
import testing ;
import ../../config/checks/config : requires ;
import-search /boost/config/checks ;
import config : requires ;
project : requirements
<library>/boost/scope_exit//boost_scope_exit
<library>/boost/foreach//boost_foreach
<library>/boost/rational//boost_rational
;
rule run-vaseq ( target : requirements * )
{