Skip to content

Commit 1fa2229

Browse files
authored
Add modular library level build file. (#228)
1 parent 814f2be commit 1fa2229

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

build.jam

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
project /boost/hof
9+
: common-requirements
10+
<include>include
11+
;
12+
13+
explicit
14+
[ alias boost_hof : : : : <library>$(boost_dependencies) ]
15+
[ alias all : boost_hof test ]
16+
;
17+
18+
call-if : boost-library hof
19+
;
20+

test/Jamfile.v2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
# Distributed under the Boost Software License, Version 1.0. (See accompanying
55
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
66
#==============================================================================
7+
8+
import-search /boost/config/checks ;
9+
710
import testing ;
8-
import ../../config/checks/config : requires ;
11+
import config : requires ;
912

1013
project hof
1114
: requirements [ requires cxx11_variadic_templates cxx11_constexpr ]
12-
<include>../include/
1315
;
1416

1517
rule test_all

0 commit comments

Comments
 (0)