mirror of
https://github.com/boostorg/metaparse.git
synced 2026-01-19 04:22:10 +00:00
Merge pull request #17 from grafikrobot/modular
Add support for modular build structure.
This commit is contained in:
28
build.jam
Normal file
28
build.jam
Normal 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
|
||||
;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
project : requirements <library>/boost/metaparse//boost_metaparse ;
|
||||
|
||||
build-project binary_number ;
|
||||
build-project calculator ;
|
||||
build-project calculator_with_parens ;
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
project : requirements
|
||||
<library>/boost/rational//boost_rational
|
||||
;
|
||||
|
||||
exe minimal_rational : main.cpp ;
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
project : requirements
|
||||
<library>/boost/rational//boost_rational
|
||||
;
|
||||
|
||||
exe rational : main.cpp ;
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
project : requirements
|
||||
<library>/boost/xpressive//boost_xpressive
|
||||
;
|
||||
|
||||
exe regexp : main.cpp ;
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user