|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59833 - in trunk: . tools/build/v2
From: ghost_at_[hidden]
Date: 2010-02-21 18:59:09
Author: vladimir_prus
Date: 2010-02-21 18:59:08 EST (Sun, 21 Feb 2010)
New Revision: 59833
URL: http://svn.boost.org/trac/boost/changeset/59833
Log:
Report where the headers and libraries were built to at the end of the
build.
Text files modified:
trunk/Jamroot | 32 ++++++++++++++++++++++----------
trunk/tools/build/v2/build-system.jam | 23 +++++++++++++++++++++--
2 files changed, 43 insertions(+), 12 deletions(-)
Modified: trunk/Jamroot
==============================================================================
--- trunk/Jamroot (original)
+++ trunk/Jamroot 2010-02-21 18:59:08 EST (Sun, 21 Feb 2010)
@@ -661,19 +661,31 @@
message explain :
-"\nBuilding the Boost C++ Libraries.
+"\nBuilding the Boost C++ Libraries.\n\n" ;
+explicit explain ;
-After the build, the headers will be located at
-
+import build-system ;
+rule say ( ok ? )
+{
+ if $(ok)
+ {
+ ECHO
+"\n\nThe Boost C++ Libraries were successfully built!
+
+The following directory should be added to compiler include paths:
+
$(BOOST_ROOT)
-
-The libraries will be located at
-
+
+The following directory should be added to linker library paths:
+
$(stage-abs)
-
-Use 'bjam install --prefix=<path>' if you wish to install headers and
-libraries to a different location and remove the source tree.\n\n"
- ;
+" ;
+ }
+}
+IMPORT $(__name__) : say : : $(__name__).say ;
+
+build-system.set-post-build-hook $(__name__).say ;
+
# This rule should be called from libraries' Jamfiles and will create two
# targets, "install" and "stage", that will install or stage that library. The
Modified: trunk/tools/build/v2/build-system.jam
==============================================================================
--- trunk/tools/build/v2/build-system.jam (original)
+++ trunk/tools/build/v2/build-system.jam 2010-02-21 18:59:08 EST (Sun, 21 Feb 2010)
@@ -113,6 +113,10 @@
.default-toolset-version = $(version) ;
}
+rule set-post-build-hook ( function )
+{
+ .post-build-hook = $(function) ;
+}
################################################################################
#
@@ -947,8 +951,23 @@
UPDATE clean ;
}
else
- {
+ {
DEPENDS all : $(actual-targets) ;
- UPDATE all $(.out-xml) ;
+ if UPDATE_NOW in [ RULENAMES ]
+ {
+ local ok = [ UPDATE_NOW all $(.out-xml) ] ;
+ if $(.post-build-hook)
+ {
+ $(.post-build-hook) $(ok) ;
+ }
+ # Prevent automatic update of the 'all' target, now that
+ # we have explicitly updated what we wanted.
+ UPDATE ;
+ }
+ else
+ {
+ UPDATE all $(.out-xml) ;
+ }
}
}
+
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