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

Merged
merged 11 commits into from
Aug 28, 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 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/mp11//boost_mp11 ;

project /boost/variant2
: common-requirements
grafikrobot marked this conversation as resolved.
Show resolved Hide resolved
<include>include
;

explicit
[ alias boost_variant2 : : : : <library>$(boost_dependencies) ]
[ alias all : boost_variant2 test ]
grafikrobot marked this conversation as resolved.
Show resolved Hide resolved
;

call-if : boost-library variant2
;

9 changes: 7 additions & 2 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@
# http://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

<warnings>extra

: requirements
<library>/boost/config//boost_config
<library>/boost/container_hash//boost_container_hash
<library>/boost/core//boost_core

<toolset>msvc:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on

;

run quick.cpp ;
Expand Down Expand Up @@ -125,7 +130,7 @@ run variant_visit_by_index.cpp ;
run variant_ostream_insert.cpp ;
run is_output_streamable.cpp ;

local JSON = <library>/boost//json/<warnings>off "<toolset>msvc-14.0:<build>no" "<toolset>msvc-14.2:<cxxflags>-wd5104" "<undefined-sanitizer>norecover:<link>static" ;
local JSON = <library>/boost/json//boost_json/<warnings>off "<toolset>msvc-14.0:<build>no" "<toolset>msvc-14.2:<cxxflags>-wd5104" "<undefined-sanitizer>norecover:<link>static" ;

run variant_json_value_from.cpp : : : $(JSON) ;
run variant_json_value_to.cpp : : : $(JSON) ;
Expand Down
Loading