Skip to content

Commit

Permalink
Add modular library level build file. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot authored Aug 19, 2024
1 parent 814f2be commit 1fa2229
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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 ;

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

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

call-if : boost-library hof
;

6 changes: 4 additions & 2 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
# 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)
#==============================================================================

import-search /boost/config/checks ;

import testing ;
import ../../config/checks/config : requires ;
import config : requires ;

project hof
: requirements [ requires cxx11_variadic_templates cxx11_constexpr ]
<include>../include/
;

rule test_all
Expand Down

0 comments on commit 1fa2229

Please sign in to comment.