Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:30:55 -05:00
parent 601598f832
commit 8853b6bafa
2 changed files with 39 additions and 1 deletions

34
build.jam Normal file
View File

@ -0,0 +1,34 @@
# 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)
require-b2 5 ;
import project ;
import modules ;
path-constant BOOST_CONFIG_ROOT : . ;
import-search $(BOOST_CONFIG_ROOT)/checks ;
project /boost/config
: common-requirements
<include>include
;
explicit
[ alias boost_config ]
[ alias all : boost_config test ]
[ alias testing
: # sources
: # requirements
: # default-buidl
: # usage-requirements
<include>test
]
;
call-if : boost-library config
;
use-project /boost/architecture : checks/architecture ;

View File

@ -10,15 +10,19 @@
import feature ;
import testing ;
import notfile ;
project
: requirements
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
<source>/boost/core//boost_core
<source>/boost/detail//boost_detail
<source>/boost/type_traits//boost_type_traits
;
import modules ;
import ../checks/config : requires ;
import config : requires ;
local is_unix = [ modules.peek : UNIX ] ;