Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:31:01 -05:00
parent 6e697d7968
commit 1c17646cd0
4 changed files with 31 additions and 14 deletions

11
Jamfile
View File

@ -1,11 +0,0 @@
# Boost.Container Library Jamfile
#
# Copyright (c) 2018 Ion Gaztanaga
#
# Use, modification, and distribution are subject to 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)
# please order by name to ease maintenance
build-project example ;
build-project test ;

25
build.jam Normal file
View File

@ -0,0 +1,25 @@
# 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/container
: common-requirements
<source>/boost/assert//boost_assert
<source>/boost/config//boost_config
<source>/boost/intrusive//boost_intrusive
<source>/boost/move//boost_move
<source>/boost/static_assert//boost_static_assert
<include>include
;
explicit
[ alias boost_container : build//boost_container ]
[ alias all : boost_container example test ]
;
call-if : boost-library container
: install boost_container
;

View File

@ -6,7 +6,7 @@
import sequence ;
project boost/container
project
: source-location ../src
: usage-requirements # pass these requirement to dependents (i.e. users)
<link>shared:<define>BOOST_CONTAINER_DYN_LINK=1
@ -18,5 +18,3 @@ lib boost_container
: <link>shared:<define>BOOST_CONTAINER_DYN_LINK=1
<link>static:<define>BOOST_CONTAINER_STATIC_LINK=1
;
boost-install boost_container ;

View File

@ -13,6 +13,11 @@
project
: requirements
<source>/boost/algorithm//boost_algorithm
<source>/boost/iterator//boost_iterator
<source>/boost/utility//boost_utility
<source>/boost/tuple//boost_tuple
<link>shared:<define>BOOST_CONTAINER_DYN_LINK=1
<toolset>gcc-cygwin:<link>static
;