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. #13

Merged
merged 13 commits into from
Aug 20, 2024
25 changes: 25 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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/assert//boost_assert
/boost/config//boost_config
/boost/throw_exception//boost_throw_exception ;

project /boost/compat
: common-requirements
<include>include
;

explicit
[ alias boost_compat : : : : <library>$(boost_dependencies) ]
[ alias all : boost_compat test ]
;

call-if : boost-library compat
;

6 changes: 5 additions & 1 deletion test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# https://www.boost.org/LICENSE_1_0.txt

import testing ;
import ../../config/checks/config : requires ;
import-search /boost/config/checks ;
import config : requires ;

project
: default-build
Expand All @@ -21,6 +22,9 @@ project
<toolset>gcc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on

<library>/boost/core//boost_core
<library>/boost/mp11//boost_mp11

# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81601
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91146
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92397
Expand Down
Loading