2013-01-18 21:25:30 -06:00
|
|
|
#!/usr/bin/env b2 -a --verbose-test
|
2014-01-10 08:46:03 -06:00
|
|
|
# Copyright Rene Rivera 2011-2013
|
2011-11-19 03:46:41 +00:00
|
|
|
# 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)
|
|
|
|
|
2013-09-27 12:11:42 -05:00
|
|
|
local predef-include-root ;
|
|
|
|
local predef-dependency ;
|
|
|
|
|
2014-07-10 08:49:46 -05:00
|
|
|
local modular-predef-h = [ glob $(BOOST_PREDEF_ROOT)/include/boost/predef.h ] ;
|
|
|
|
local BOOST_RELEASE_LAYOUT ;
|
|
|
|
if ! $(modular-predef-h)
|
|
|
|
{
|
|
|
|
BOOST_RELEASE_LAYOUT = yes ;
|
|
|
|
}
|
|
|
|
|
2013-09-27 12:11:42 -05:00
|
|
|
# When using modular layout, header files are not present in $root/boost
|
|
|
|
# unlink links are created, therefore instead of direct dependency on
|
|
|
|
# a header, we need to use dependency on metatarget.
|
2014-07-10 08:49:46 -05:00
|
|
|
if $(BOOST_RELEASE_LAYOUT)
|
|
|
|
{
|
|
|
|
predef-dependency = $(predef-include-root)/boost/predef.h ;
|
|
|
|
}
|
|
|
|
else if $(BOOST_PREDEF_ROOT)
|
2013-07-28 12:07:05 -05:00
|
|
|
{
|
2013-09-27 12:11:42 -05:00
|
|
|
predef-include-root = $(BOOST_PREDEF_ROOT)/include ;
|
|
|
|
predef-dependency = $(predef-include-root)/boost/predef.h ;
|
|
|
|
}
|
|
|
|
else if $(BOOST_MODULARLAYOUT)
|
|
|
|
{
|
2014-07-10 08:49:46 -05:00
|
|
|
predef-include-root = $(BOOST_ROOT) ;
|
2013-09-27 12:11:42 -05:00
|
|
|
predef-dependency = /boost//predef-headers ;
|
2013-07-28 12:07:05 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-07-10 08:49:46 -05:00
|
|
|
predef-dependency = $(predef-include-root)/boost/predef.h ;
|
2013-07-28 12:07:05 -05:00
|
|
|
}
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
project test
|
|
|
|
: requirements
|
2013-09-27 12:11:42 -05:00
|
|
|
<include>$(predef-include-root)
|
|
|
|
# Add explicit dependency since we don't have header scanner for
|
|
|
|
# .m and .mm files.
|
|
|
|
<dependency>$(predef-dependency)
|
2011-11-19 03:46:41 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
using testing ;
|
|
|
|
|
2013-07-28 12:07:05 -05:00
|
|
|
test-suite predef :
|
2011-11-30 05:54:23 +00:00
|
|
|
[ run info_as_cpp.cpp : : : <test-info>always_show_run_output ]
|
|
|
|
[ run info_as_c.c : : : <test-info>always_show_run_output ]
|
|
|
|
[ run info_as_objcpp.mm : : : <test-info>always_show_run_output ]
|
|
|
|
[ run info_as_objc.m : : : <test-info>always_show_run_output ]
|
|
|
|
[ run version.cpp ]
|
|
|
|
[ run make.cpp ]
|
2013-10-05 16:41:55 -05:00
|
|
|
[ compile macos_endian.c ]
|
|
|
|
[ compile macos_vs_bsd.c ]
|
2011-11-30 05:54:23 +00:00
|
|
|
;
|