Skip to content

Commit

Permalink
Add support for modular build structure. (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot authored Aug 19, 2024
1 parent e66cd6b commit 275ee33
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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/config//boost_config
/boost/core//boost_core
/boost/fusion//boost_fusion
/boost/mpl//boost_mpl
/boost/tuple//boost_tuple ;

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

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

call-if : boost-library hana
;

5 changes: 3 additions & 2 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)

import-search /boost/config/checks ;
import config : requires ;
import testing ;
import regex ;

project :
requirements
<include>./_include
<include>../include
<library>/boost/hana//boost_hana
<include>_include
;

rule hana-all-tests {
Expand Down

0 comments on commit 275ee33

Please sign in to comment.