Skip to content
22 changes: 22 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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 ;

project /boost/typeof
;

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

call-if : boost-library typeof
;

20 changes: 12 additions & 8 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import testing ;
import set ;

project : requirements
<library>/boost/core//boost_core
;

# The special requirement is not ported yet.
#
#local rule special-requirements ( toolset variant : properties * )
Expand All @@ -22,7 +26,7 @@ import set ;
# [ replace-properties $(properties) : <build>no ] ;
# }
# }
#
#
# return $(properties) ;
#}

Expand All @@ -31,8 +35,8 @@ rule typeof-test ( source )
return [ compile $(source) : <define>BOOST_TYPEOF_NATIVE :
$(source:B)_native ]
[ compile $(source) : <define>BOOST_TYPEOF_EMULATION :
$(source:B)_emulation ]
;
$(source:B)_emulation ]
;
}

rule all-tests ( )
Expand All @@ -46,12 +50,12 @@ rule all-tests ( )
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_NATIVE :
odr_native ] ;
all += [ run odr1.cpp odr2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_emulation ] ;
all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_no_uns ] ;
return $(all) ;
odr_emulation ] ;
all += [ run odr_no_uns1.cpp odr_no_uns2.cpp : : : <define>BOOST_TYPEOF_EMULATION :
odr_no_uns ] ;
return $(all) ;
}

test-suite "typeof"
test-suite "typeof"
: [ all-tests ]
;
Loading