Make the library modular usable.

This commit is contained in:
Rene Rivera
2024-03-11 08:38:17 -05:00
parent 895335874d
commit 937c7bb75c
3 changed files with 37 additions and 3 deletions

26
build.jam Normal file
View File

@ -0,0 +1,26 @@
# 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/function_types
: common-requirements
<source>/boost/config//boost_config
<source>/boost/core//boost_core
<source>/boost/detail//boost_detail
<source>/boost/mpl//boost_mpl
<source>/boost/preprocessor//boost_preprocessor
<source>/boost/type_traits//boost_type_traits
<include>include
;
explicit
[ alias boost_function_types ]
[ alias all : boost_function_types example test ]
;
call-if : boost-library function_types
: install boost_function_types
;

View File

@ -6,14 +6,20 @@
#-------------------------------------------------------------------------------
exe interpreter_example : interpreter_example.cpp ;
exe interpreter_example : interpreter_example.cpp
: <library>/boost/tokenizer//boost_tokenizer
<library>/boost/lexical_cast//boost_lexical_cast
;
exe result_of_example : result_of_example.cpp ;
exe interface_example : interface_example.cpp ;
exe fast_mem_fn_example : fast_mem_fn_example.cpp
: <include>. ; # needed for Boost.PP file iteration with some compilers
: <include>. # needed for Boost.PP file iteration with some compilers
<library>/boost/timer//boost_timer
<library>/boost/bind//boost_bind
;
exe macro_type_args_example : macro_type_args_example.cpp ;

View File

@ -75,12 +75,14 @@ import testing ;
# Code from the examples
[ compile ../example/interpreter_example.cpp ]
[ compile ../example/interpreter_example.cpp : <library>/boost/tokenizer//boost_tokenizer <library>/boost/lexical_cast//boost_lexical_cast ]
[ compile ../example/result_of_example.cpp ]
[ compile ../example/interface_example.cpp ]
[ compile ../example/fast_mem_fn_example.cpp
# needed for Boost.PP file iteration with some compilers
: <include>../example
<library>/boost/timer//boost_timer
<library>/boost/bind//boost_bind
]
[ compile ../example/macro_type_args_example.cpp ]
;