Merge pull request #17 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Abel Sinkovics
2025-04-14 20:30:29 +02:00
committed by GitHub
6 changed files with 44 additions and 1 deletions

28
build.jam Normal file
View File

@@ -0,0 +1,28 @@
# 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/config//boost_config
/boost/mpl//boost_mpl
/boost/predef//boost_predef
/boost/preprocessor//boost_preprocessor
/boost/static_assert//boost_static_assert
/boost/type_traits//boost_type_traits ;
project /boost/metaparse
: common-requirements
<include>include
;
explicit
[ alias boost_metaparse : : : : <library>$(boost_dependencies) ]
[ alias all : boost_metaparse example test ]
;
call-if : boost-library metaparse
;

View File

@@ -1,3 +1,5 @@
project : requirements <library>/boost/metaparse//boost_metaparse ;
build-project binary_number ;
build-project calculator ;
build-project calculator_with_parens ;

View File

@@ -1 +1,5 @@
project : requirements
<library>/boost/rational//boost_rational
;
exe minimal_rational : main.cpp ;

View File

@@ -1 +1,5 @@
project : requirements
<library>/boost/rational//boost_rational
;
exe rational : main.cpp ;

View File

@@ -1 +1,5 @@
project : requirements
<library>/boost/xpressive//boost_xpressive
;
exe regexp : main.cpp ;

View File

@@ -1,7 +1,8 @@
import testing ;
project metaparse :
project :
requirements
<library>/boost/metaparse//boost_metaparse
<toolset>gcc:<cxxflags>"-ftemplate-depth-300"
<toolset>clang:<cxxflags>"-ftemplate-depth-300"