Skip to content

Commit 55b1fc5

Browse files
authored
Merge pull request #21 from grafikrobot/modular
Add support for modular build structure.
2 parents fd456f7 + ce9dbb4 commit 55b1fc5

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

build.jam

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright René Ferdinand Rivera Morell 2024
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# (See accompanying file LICENSE_1_0.txt or copy at
4+
# http://www.boost.org/LICENSE_1_0.txt)
5+
6+
require-b2 5.2 ;
7+
8+
constant boost_dependencies :
9+
/boost/assert//boost_assert
10+
/boost/config//boost_config
11+
/boost/core//boost_core
12+
/boost/iterator//boost_iterator
13+
/boost/mp11//boost_mp11
14+
/boost/mpl//boost_mpl
15+
/boost/type_erasure//boost_type_erasure
16+
/boost/type_traits//boost_type_traits ;
17+
18+
project /boost/poly_collection
19+
: common-requirements
20+
<include>include
21+
;
22+
23+
explicit
24+
[ alias boost_poly_collection : : : : <library>$(boost_dependencies) ]
25+
[ alias all : boost_poly_collection example test ]
26+
;
27+
28+
call-if : boost-library poly_collection
29+
;
30+

example/Jamfile.v2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
project
99
: requirements
10-
<include>$(BOOST_ROOT)
10+
<library>/boost/poly_collection//boost_poly_collection
1111
<cxxstd>11
1212
;
1313

@@ -39,6 +39,7 @@ exe insertion_emplacement
3939

4040
exe perf
4141
: perf.cpp
42+
/boost/ptr_container//boost_ptr_container
4243
:
4344
: release
4445
;

test/Jamfile.v2

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
#
66
# See http://www.boost.org/libs/poly_collection for library home page.
77

8+
require-b2 5.0.1 ;
9+
import-search /boost/config/checks ;
10+
811
import testing ;
9-
import ../../config/checks/config : requires ;
12+
import config : requires ;
1013

1114
project
1215
: requirements
16+
<library>/boost/poly_collection//boost_poly_collection
1317
[ requires cxx11_noexcept ] # used as a proxy for C++11 support
1418
<toolset>msvc:<cxxflags>-D_SCL_SECURE_NO_WARNINGS
1519
;
@@ -19,7 +23,7 @@ test-suite "poly_collection" :
1923
test_algorithm2.cpp test_algorithm3.cpp
2024
test_algorithm_main.cpp
2125
:
22-
:
26+
:
2327
: <toolset>msvc:<cxxflags>/bigobj
2428
<toolset>gcc:<inlining>on
2529
<toolset>gcc:<optimization>space
@@ -29,7 +33,7 @@ test-suite "poly_collection" :
2933
[ run test_comparison.cpp test_comparison_main.cpp ]
3034
[ run test_construction.cpp test_construction_main.cpp
3135
:
32-
:
36+
:
3337
: <toolset>msvc:<cxxflags>/bigobj
3438
<toolset>gcc:<inlining>on
3539
<toolset>gcc:<optimization>space

0 commit comments

Comments
 (0)