Skip to content

Commit cd7fc26

Browse files
authored
Merge pull request #65 from grafikrobot/modular
Add support for modular build structure.
2 parents 1e1347c + e692566 commit cd7fc26

File tree

9 files changed

+48
-12
lines changed

9 files changed

+48
-12
lines changed

build.jam

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright René Ferdinand Rivera Morell 2023-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/context//boost_context
12+
/boost/core//boost_core
13+
/boost/exception//boost_exception
14+
/boost/move//boost_move
15+
/boost/system//boost_system
16+
/boost/throw_exception//boost_throw_exception
17+
/boost/type_traits//boost_type_traits
18+
/boost/utility//boost_utility ;
19+
20+
project /boost/coroutine
21+
: common-requirements
22+
<include>include
23+
;
24+
25+
explicit
26+
[ alias boost_coroutine : build//boost_coroutine ]
27+
[ alias all : boost_coroutine test ]
28+
;
29+
30+
call-if : boost-library coroutine
31+
: install boost_coroutine
32+
;
33+

build/Jamfile.v2

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
import feature ;
88
import modules ;
99
import toolset ;
10+
import-search /boost/context ;
11+
import boost-context-features ;
1012

11-
project boost/coroutine
13+
project
14+
: common-requirements <library>$(boost_dependencies)
1215
: requirements
1316
<library>/boost/context//boost_context
1417
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
@@ -19,6 +22,7 @@ project boost/coroutine
1922
<define>BOOST_COROUTINES_SOURCE
2023
: usage-requirements
2124
<link>shared:<define>BOOST_COROUTINES_DYN_LINK=1
25+
<define>BOOST_COROUTINES_NO_LIB=1
2226
: source-location ../src
2327
;
2428

@@ -37,7 +41,5 @@ lib boost_coroutine
3741
: detail/coroutine_context.cpp
3842
exceptions.cpp
3943
stack_traits_sources
40-
: <link>shared:<library>../../context/build//boost_context
44+
: <link>shared:<library>/boost/context//boost_context
4145
;
42-
43-
boost-install boost_coroutine ;

example/asymmetric/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import modules ;
1414
import os ;
1515
import toolset ;
1616

17-
project boost/coroutine/example/asymmetric
17+
project
1818
: requirements
1919
<library>/boost/context//boost_context
2020
<library>/boost/coroutine//boost_coroutine

example/symmetric/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import modules ;
1414
import os ;
1515
import toolset ;
1616

17-
project boost/coroutine/example/symmetric
17+
project
1818
: requirements
1919
<library>/boost/context//boost_context
2020
<library>/boost/coroutine//boost_coroutine

performance/asymmetric/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import modules ;
1313
import os ;
1414
import toolset ;
1515

16-
project boost/coroutine/performance/asymmetric
16+
project
1717
: requirements
1818
<library>/boost/chrono//boost_chrono
1919
<library>/boost/context//boost_context

performance/asymmetric/segmented/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import modules ;
1313
import os ;
1414
import toolset ;
1515

16-
project boost/coroutine/performance/segmented
16+
project
1717
: requirements
1818
<library>/boost/chrono//boost_chrono
1919
<library>/boost/context//boost_context

performance/symmetric/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import modules ;
1313
import os ;
1414
import toolset ;
1515

16-
project boost/coroutine/performance/symmetric
16+
project
1717
: requirements
1818
<library>/boost/chrono//boost_chrono
1919
<library>/boost/context//boost_context

performance/symmetric/segmented/Jamfile.v2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import modules ;
1313
import os ;
1414
import toolset ;
1515

16-
project boost/coroutine/performance/segmented
16+
project
1717
: requirements
1818
<library>/boost/chrono//boost_chrono
1919
<library>/boost/context//boost_context

test/Jamfile.v2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import os ;
1313
import testing ;
1414
import toolset ;
1515

16-
project boost/coroutine/test
16+
project
1717
: requirements
1818
<library>/boost/context//boost_context
1919
<library>/boost/coroutine//boost_coroutine
20+
<library>/boost/foreach//boost_foreach
2021
<library>/boost/program_options//boost_program_options
21-
<library>/boost/test///boost_unit_test_framework
22+
<library>/boost/test//boost_unit_test_framework
2223
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
2324
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
2425
<toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack

0 commit comments

Comments
 (0)