Browse Source

(merge from head) Restore BBv1 install functionality of installing to c:/Boost by default.

[SVN r35762]
Rene Rivera 19 years ago
parent
commit
60c0c28ae7
2 changed files with 19 additions and 6 deletions
  1. 18 5
      Jamfile.v2
  2. 1 1
      tools/build

+ 18 - 5
Jamfile.v2

@@ -282,6 +282,22 @@ rule tag ( name : type ? : property-set )
 
 # Install to system location.
 
+local install-requirements =
+    <install-source-root>boost
+    ;
+if $(layout-versioned)
+{
+    install-requirements += <install-header-subdir>boost-$(BOOST_VERSION_TAG)/boost ;
+}
+if [ modules.peek : NT ]
+{
+    install-requirements += <install-default-prefix>C:/Boost ;
+}
+else if [ modules.peek : UNIX ]
+{
+    install-requirements += <install-default-prefix>/usr/local ;
+}
+
 local headers =
     [ path.glob-tree boost : *.hpp *.ipp *.h *.inc : CVS ]
     [ path.glob-tree boost/compatibility/cpp_c_headers : c* : CVS ]
@@ -294,8 +310,7 @@ else { header-subdir = boost ; }
 
 # Complete install
 package.install install
-    :   <install-source-root>boost
-        <install-header-subdir>$(header-subdir)
+    :   $(install-requirements)
     :
     :   libs/$(libraries)/build
     :   $(headers)
@@ -321,7 +336,7 @@ alias build_all : libs/$(libraries)/build ;
 rule boost-install ( libraries * )
 {
     package.install install
-        : <dependency>/boost//install-headers
+        : <dependency>/boost//install-headers $(install-requirements)
         : # No binaries
         : $(libraries)
         : # No headers, it's handled by the dependency
@@ -337,8 +352,6 @@ rule boost-install ( libraries * )
     }
 }
 
-
-
 # Make project ids of all libraries known.
 for local l in $(libraries)
 {

+ 1 - 1
tools/build

@@ -1 +1 @@
-Subproject commit 20a2db4a7949f9e6b60f193484fd5bf3531277a3
+Subproject commit f2b26b3138de4b68ba1bb7eee9f6690cfeea6d96

粤ICP备19079148号