Changeset 19442

Show
Ignore:
Timestamp:
11/10/06 09:31:35 (2 years ago)
Author:
patrick
Message:

MFT [rev 19437]: Allow the user to choose which build of Boost.Python

(either optimized or debug) is used by setting the
$(BP_TYPE) make variable. By default, the PyJuggler? build
now uses the optimized version of Boost.Python unless told
otherwise.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/branches/1.0/INSTALL.txt

    r15937 r19442  
    165165   % make 
    166166 
     167This builds an optimized version of PyJuggler. 
     168 
    167169This assumes that you have Boost 1.31.x installed.  If you have a version 
    168170newer than 1.31 (i.e., 1.32, 1.33, etc.), you must add the option 
     
    172174        --with-boost-version=<Boost version> 
    173175 
    174 Valid values have only the major and minor version number.  DO NOT ADD 
    175 THE PATCH VERSION!!  This extra option is needed because the Boost 
    176 installation procedure incldues the Boost version number in the names of 
    177 installed files and directories. 
     176Only add the patch version if it is a non-zero value (for example, 1.33.1). 
     177DO NOT use the patch version if it is zero (for example, 1.34.0). 
    178178 
    179179If, for some reason, your Boost 1.31 (or newer) installation does not 
     
    184184the auto-detected default. 
    185185 
     186By default, the PyJuggler GNU Make build always links against the optimized 
     187version of the Boost.Python library.  To override this, the $(BP_TYPE) make 
     188variable can be set to either "debug" or "optim" indicating the use of the 
     189debug or the optimized Boost.Python library respectively.  A common reason 
     190to do this would be to debug PyJuggler, in which case PyJuggler would be 
     191built with debugging symbols.  The usage would then be the following: 
     192 
     193   % make BP_TYPE=debug debug 
     194 
    186195$Id$ 
  • PyJuggler/branches/1.0/src/common-targets.mk.in

    r18527 r19442  
    6868   MOD_SUFFIX=                  $(MODEXT_DBG) 
    6969   OBJDIR=                      $(OBJDIR_DBG) 
    70    BOOST_PYTHON_LDFLAGS=        @BOOST_PYTHON_LDFLAGS_DBG@ 
    7170   PYJUTIL_LIB=                 @PYJUTIL_LDFLAGS_DBG@ 
    7271else 
     
    7574   MOD_SUFFIX=                  $(MODEXT_OPT) 
    7675   OBJDIR=                      $(OBJDIR_OPT) 
     76   PYJUTIL_LIB=                 @PYJUTIL_LDFLAGS_OPT@ 
     77endif 
     78 
     79# Set the type of Boost.Python against which PyJuggler will be linked. Valid 
     80# values are "optim" (for the optimized Boost.Python build) or "debug" (for 
     81# the debug Boost.Python build). 
     82BP_TYPE?=                       optim 
     83 
     84ifeq ($(BP_TYPE), debug) 
     85   BOOST_PYTHON_LDFLAGS=        @BOOST_PYTHON_LDFLAGS_DBG@ 
     86else 
    7787   BOOST_PYTHON_LDFLAGS=        @BOOST_PYTHON_LDFLAGS_OPT@ 
    78    PYJUTIL_LIB=                 @PYJUTIL_LDFLAGS_OPT@ 
    7988endif 
    8089