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. #40

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Jamfile

This file was deleted.

35 changes: 35 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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/array//boost_array
/boost/assert//boost_assert
/boost/circular_buffer//boost_circular_buffer
/boost/config//boost_config
/boost/core//boost_core
/boost/iterator//boost_iterator
/boost/mpl//boost_mpl
/boost/range//boost_range
/boost/smart_ptr//boost_smart_ptr
/boost/static_assert//boost_static_assert
/boost/type_traits//boost_type_traits
/boost/unordered//boost_unordered
/boost/utility//boost_utility ;

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

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

call-if : boost-library ptr_container
;

34 changes: 18 additions & 16 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,30 @@

import testing ;

project : requirements <library>/boost/test//boost_unit_test_framework/<link>static ;
project : requirements
<library>/boost/ptr_container//boost_ptr_container
<library>/boost/test//boost_unit_test_framework/<link>static ;

run ptr_inserter.cpp ;
run ptr_vector.cpp ;
run ptr_list.cpp ;
run ptr_deque.cpp ;
run ptr_set.cpp ;
run ptr_map.cpp ;
run ptr_map_adapter.cpp ;
run ptr_array.cpp ;
run tree_test.cpp ;
run incomplete_type_test.cpp ;
run ptr_inserter.cpp /boost/assign//boost_assign ;
run ptr_vector.cpp /boost/assign//boost_assign /boost/lexical_cast//boost_lexical_cast ;
run ptr_list.cpp /boost/assign//boost_assign /boost/lexical_cast//boost_lexical_cast ;
run ptr_deque.cpp /boost/assign//boost_assign /boost/lexical_cast//boost_lexical_cast ;
run ptr_set.cpp /boost/lexical_cast//boost_lexical_cast ;
run ptr_map.cpp /boost/lexical_cast//boost_lexical_cast ;
run ptr_map_adapter.cpp /boost/lexical_cast//boost_lexical_cast ;
run ptr_array.cpp /boost/lexical_cast//boost_lexical_cast ;
run tree_test.cpp /boost/lexical_cast//boost_lexical_cast ;
run incomplete_type_test.cpp /boost/lexical_cast//boost_lexical_cast ;
run view_example.cpp ;
run iterator_test.cpp ;
run tut1.cpp ;
run indirect_fun.cpp ;
run indirect_fun.cpp /boost/assign//boost_assign ;
run serialization.cpp /boost/serialization//boost_serialization : : : <undefined-sanitizer>norecover:<build>no ;
run no_exceptions.cpp ;
run no_exceptions.cpp /boost/assign//boost_assign /boost/lexical_cast//boost_lexical_cast ;

run ptr_unordered_set.cpp ;
run ptr_unordered_map.cpp ;
run ptr_circular_buffer.cpp ;
run ptr_unordered_set.cpp /boost/lexical_cast//boost_lexical_cast ;
run ptr_unordered_map.cpp /boost/lexical_cast//boost_lexical_cast ;
run ptr_circular_buffer.cpp /boost/assign//boost_assign /boost/lexical_cast//boost_lexical_cast ;
compile const_element_containers.cpp ;

compile issue_23.cpp ;
Loading