forked from boostorg/config
Make the library modular usable.
This commit is contained in:
34
build.jam
Normal file
34
build.jam
Normal 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 ;
|
@ -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 ] ;
|
||||
|
||||
|
Reference in New Issue
Block a user