Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2008-05-05 11:24:57


Author: vladimir_prus
Date: 2008-05-05 11:24:56 EDT (Mon, 05 May 2008)
New Revision: 45143
URL: http://svn.boost.org/trac/boost/changeset/45143

Log:
Allow to separately specify include, lib and bin paths for Qt4.

Patch from tr1gun <tr1gun_at_[hidden]>

Text files modified:
   trunk/tools/build/v2/tools/qt4.jam | 47 +++++++++++++++++++++++++++++++++++++--
   1 files changed, 44 insertions(+), 3 deletions(-)

Modified: trunk/tools/build/v2/tools/qt4.jam
==============================================================================
--- trunk/tools/build/v2/tools/qt4.jam (original)
+++ trunk/tools/build/v2/tools/qt4.jam 2008-05-05 11:24:56 EDT (Mon, 05 May 2008)
@@ -76,16 +76,58 @@
 # Initialized the QT support module. The 'prefix' parameter tells where QT is
 # installed.
 #
-rule init ( prefix )
+rule init ( prefix : full_bin ? : full_inc ? : full_lib ? )
 {
     project.push-current $(.project) ;
 
+ # pre-build paths to detect reinitializations changes
+ local inc_prefix lib_prefix bin_prefix ;
+ if $(full_inc)
+ {
+ inc_prefix = $(full_inc) ;
+ }
+ else
+ {
+ inc_prefix = $(prefix)/include ;
+ }
+ if $(full_lib)
+ {
+ lib_prefix = $(full_lib) ;
+ }
+ else
+ {
+ lib_prefix = $(prefix)/lib ;
+ }
+ if $(full_bin)
+ {
+ bin_prefix = $(full_bin) ;
+ }
+ else
+ {
+ bin_prefix = $(prefix)/bin ;
+ }
+
     if $(.initialized)
     {
         if $(prefix) != $(.prefix)
         {
             errors.error
- "Attempt the reinitialize QT with different installation prefix" ;
+ "Attempt the reinitialize QT with different installation prefix" ;
+ }
+ if $(inc_prefix) != $(.incprefix)
+ {
+ errors.error
+ "Attempt the reinitialize QT with different include path" ;
+ }
+ if $(lib_prefix) != $(.libprefix)
+ {
+ errors.error
+ "Attempt the reinitialize QT with different library path" ;
+ }
+ if $(bin_prefix) != $(.binprefix)
+ {
+ errors.error
+ "Attempt the reinitialize QT with different bin path" ;
         }
     }
     else
@@ -94,7 +136,6 @@
         .prefix = $(prefix) ;
 
         # Setup prefixes for include, binaries and libs.
- # TODO: Implement overrides in "init" parameter list.
         .incprefix = $(.prefix)/include ;
         .libprefix = $(.prefix)/lib ;
         .binprefix = $(.prefix)/bin ;


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