mirror of
https://github.com/boostorg/variant2.git
synced 2025-07-29 19:57:18 +02:00
Make the library modular usable.
This commit is contained in:
22
build.jam
Normal file
22
build.jam
Normal file
@ -0,0 +1,22 @@
|
||||
# Copyright René Ferdinand Rivera Morell 2023
|
||||
# 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)
|
||||
|
||||
import project ;
|
||||
|
||||
project /boost/variant2
|
||||
: common-requirements
|
||||
<source>/boost/assert//boost_assert
|
||||
<source>/boost/config//boost_config
|
||||
<source>/boost/mp11//boost_mp11
|
||||
<include>include
|
||||
;
|
||||
|
||||
explicit
|
||||
[ alias boost_variant2 ]
|
||||
[ alias all : boost_variant2 test ]
|
||||
;
|
||||
|
||||
call-if : boost-library variant2
|
||||
;
|
@ -7,7 +7,7 @@
|
||||
# http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
import testing ;
|
||||
import ../../config/checks/config : requires ;
|
||||
import config : requires ;
|
||||
|
||||
project
|
||||
: default-build
|
||||
@ -15,12 +15,16 @@ project
|
||||
<warnings>extra
|
||||
|
||||
: requirements
|
||||
<source>/boost/config//boost_config
|
||||
<source>/boost/container_hash//boost_container_hash
|
||||
<source>/boost/core//boost_core
|
||||
|
||||
[ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr ]
|
||||
|
||||
<toolset>msvc:<warnings-as-errors>on
|
||||
<toolset>gcc:<warnings-as-errors>on
|
||||
<toolset>clang:<warnings-as-errors>on
|
||||
|
||||
;
|
||||
|
||||
run quick.cpp ;
|
||||
@ -127,7 +131,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) ;
|
||||
|
Reference in New Issue
Block a user