|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85974 - trunk/libs/predef/test
From: grafikrobot_at_[hidden]
Date: 2013-09-27 13:22:40
Author: grafik
Date: 2013-09-27 13:22:39 EDT (Fri, 27 Sep 2013)
New Revision: 85974
URL: http://svn.boost.org/trac/boost/changeset/85974
Log:
Adjustments for building tests with dynamically generated header links for modular SVN layout.
Text files modified:
trunk/libs/predef/test/build.jam | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
Modified: trunk/libs/predef/test/build.jam
==============================================================================
--- trunk/libs/predef/test/build.jam Fri Sep 27 02:19:24 2013 (r85973)
+++ trunk/libs/predef/test/build.jam 2013-09-27 13:22:39 EDT (Fri, 27 Sep 2013) (r85974)
@@ -4,19 +4,34 @@
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
+local predef-include-root ;
+local predef-dependency ;
+
+# 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.
if $(BOOST_PREDEF_ROOT)
{
- path-constant BOOST_PREDEF_INCLUDE_ROOT : $(BOOST_PREDEF_ROOT)/include ;
+ predef-include-root = $(BOOST_PREDEF_ROOT)/include ;
+ predef-dependency = $(predef-include-root)/boost/predef.h ;
+}
+else if $(BOOST_MODULARLAYOUT)
+{
+ predef-include-root = $(BOOST_ROOT)/include ;
+ predef-dependency = /boost//predef-headers ;
}
else
{
- path-constant BOOST_PREDEF_INCLUDE_ROOT : $(BOOST_ROOT) ;
+ predef-include-root = $(BOOST_ROOT) ;
+ predef-dependency = $(predef-include-root)/boost/predef.h ;
}
project test
: requirements
- <include>$(BOOST_PREDEF_INCLUDE_ROOT)
- <dependency>$(BOOST_PREDEF_INCLUDE_ROOT)/boost/predef.h
+ <include>$(predef-include-root)
+ # Add explicit dependency since we don't have header scanner for
+ # .m and .mm files.
+ <dependency>$(predef-dependency)
;
using testing ;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk