1 #!/usr/bin/env b2 -a --verbose-test
2 # Copyright Rene Rivera 2011-2016
3 # Distributed under the Boost Software License, Version 1.0.
4 # (See accompanying file LICENSE_1_0.txt or copy at
5 # http://www.boost.org/LICENSE_1_0.txt)
7 import ../check/predef : require check : predef-require predef-check ;
9 local predef-include-root ;
10 local predef-dependency ;
12 local modular-predef-h = [ glob $(BOOST_PREDEF_ROOT)/include/boost/predef.h ] ;
13 local BOOST_RELEASE_LAYOUT ;
14 if ! $(modular-predef-h)
16 BOOST_RELEASE_LAYOUT = yes ;
19 # When using modular layout, header files are not present in $root/boost
20 # unlink links are created, therefore instead of direct dependency on
21 # a header, we need to use dependency on metatarget.
22 if $(BOOST_RELEASE_LAYOUT)
24 predef-dependency = $(predef-include-root)/boost/predef.h ;
26 else if $(BOOST_PREDEF_ROOT)
28 predef-include-root = $(BOOST_PREDEF_ROOT)/include ;
29 predef-dependency = $(predef-include-root)/boost/predef.h ;
31 else if $(BOOST_MODULARLAYOUT)
33 predef-include-root = $(BOOST_ROOT) ;
34 predef-dependency = /boost//predef-headers ;
38 predef-dependency = $(predef-include-root)/boost/predef.h ;
43 <include>$(predef-include-root)
44 # Add explicit dependency since we don't have header scanner for
46 <dependency>$(predef-dependency)
52 [ run info_as_cpp.cpp : : : <test-info>always_show_run_output ]
53 [ run info_as_c.c : : : <test-info>always_show_run_output ]
54 [ run info_as_objcpp.mm : : : <test-info>always_show_run_output ]
55 [ run info_as_objc.m : : : <test-info>always_show_run_output ]
58 [ compile macos_endian.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
59 [ compile macos_vs_bsd.c : [ predef-require "BOOST_OS_MACOS" : cpp ] ]
60 [ run check_value.cpp : : : <test-info>always_show_run_output
61 [ predef-check "BOOST_COMP_CLANG > 0.0.0" "BOOST_OS_LINUX == 0" : : <cxxflags>-DCHECK_VALUE=true ] ]
64 # Minimal testing done for predef for CI. Since
65 # we don't have many we can just do all of them.
66 alias minimal : predef ;
68 # Full testing target for regular regression tests.
71 # Extra's target. Nothing for Predef.