Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #122

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
36 changes: 36 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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/any//boost_any
/boost/assert//boost_assert
/boost/bind//boost_bind
/boost/config//boost_config
/boost/core//boost_core
/boost/iterator//boost_iterator
/boost/mpl//boost_mpl
/boost/multi_index//boost_multi_index
/boost/optional//boost_optional
/boost/range//boost_range
/boost/serialization//boost_serialization
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits ;

project /boost/property_tree
: common-requirements
<include>include
;

explicit
[ alias boost_property_tree : : : : <library>$(boost_dependencies) ]
[ alias all : examples test ]
;

call-if : boost-library property_tree
;

2 changes: 1 addition & 1 deletion doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import quickbook ;

doxygen autodoc
:
[ glob ../../../boost/property_tree/*.hpp ]
[ glob ../include/boost/property_tree/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=YES
<doxygen:param>"PREDEFINED=\"BOOST_PROPERTY_TREE_DOXYGEN_INVOKED\" \\
Expand Down
7 changes: 5 additions & 2 deletions examples/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt

project : requirements <library>/boost/property_tree//boost_property_tree ;

exe custom_data_type : custom_data_type.cpp ;
exe debug_settings : debug_settings.cpp ;
exe debug_settings : debug_settings.cpp
/boost/foreach//boost_foreach ;
exe empty_ptree_trick : empty_ptree_trick.cpp ;
exe info_grammar_spirit : info_grammar_spirit.cpp ;
exe speed_test : speed_test.cpp ;
exe speed_test : speed_test.cpp /boost/format//boost_format ;
6 changes: 4 additions & 2 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import testing ;
project
: requirements

<library>/boost/property_tree//boost_property_tree

<link>static
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1

Expand Down Expand Up @@ -42,7 +44,7 @@ for local file in [ glob-tree-ex ../include : *.hpp ]
}

compile ../examples/custom_data_type.cpp ;
compile ../examples/debug_settings.cpp ;
compile ../examples/debug_settings.cpp /boost/foreach//boost_foreach ;
compile ../examples/empty_ptree_trick.cpp ;
compile ../examples/info_grammar_spirit.cpp ;
compile ../examples/speed_test.cpp ;
compile ../examples/speed_test.cpp /boost/format//boost_format ;
Loading