Boost logo

Boost-Build :

From: Thomas Witt (witt_at_[hidden])
Date: 2002-02-23 10:06:34


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Attached is a slightly modified version of msvc-stlport-tools.jam. I have
added an stlport-link feature. When using this toolset specifying
sBUILD="<stlport-version>4.5.3 <stlport-link>static" on the commanline has no
effect at all.

After 2 hours of debugging I am absolutely clueless, any help would be greatly
appreciated.

Thanks

Thomas

- --
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d6//0ds/gS3XsBoRAq6qAJ9VUQ8k5VdA17fwG6fAqJPI0kRVZgCggau4
OD2WD2kh1MW7dhoB2DFluME=
=bEgR
-----END PGP SIGNATURE-----
 --------------Boundary-00=_YARZTUSH3VC35YP65HG3 Content-Type: text/plain;
charset="us-ascii";
name="intel-win32-stlport-tools.jam"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="intel-win32-stlport-tools.jam"

#
# This is msvc-stlport-tools.jam. It adds support for STLport used with
# the msvc toolset.
#
# Written by Markus Schöpflin.
# Originally based on "gcc-stlport-tools.jam", copyrighted by David
# Abrahams and Carlos Pinto Coelho 2001.
#
# To use it, you have to:
#
# 1. specify msvc-stlport as the tool name, for example by placing
# TOOLS = msvc-stlport ;
# in your jam rules file.
#
# 2a. Set STLPORT_PATH to point to the directory _above_ the STLport
# directory. This assumes that you didn't rename the STLport folder
# and allows for automatic selection of multiple STLport versions.
#
# and / or
#
# 2b. For STLPort version X.Y, set STLPORT_X.Y_PATH to the STLport
# directory for each STLport version you are going to use.
# This also overrides any setting of STLPORT_PATH for this version.
#
# NOTE: For msvc, the link libs are pulled in by the STLport header files
# automatically; there's no need to specify them manually.
#

# this is simply an extension to the msvc toolset.
extends-toolset intel-win32 ;

INTEL_STDHDRS = $(STDHDRS) ;
INTEL_STDLIBPATH = $(STDLIBPATH) ;

STDHDRS = ;
STDLIBPATH = ;

STLPORT_DEFINE_VERSION = ;

# Force use of static lib
feature stlport-link : dynamic static ;

# STLport iostreams or native iostreams
# feature stlport-iostream : off on ;

# major versions of STLport
feature stlport-version : 4.0 4.5 4.5.1 4.5.3 ;

#############################################################################

# Returns a path which is assumed to be the root of the STLport installation.
#
# The result depends on the current version X.Y of STLport.
# 1. If global STLPORT_<X.Y>_PATH is set, return it.
# 2. If global STLPORT_PATH is set, return $(STLPORT_PATH)/STLport-<X.Y>
#
rule get-stlport-root
{
local version = [ get-values <stlport-version> : $(gBUILD_PROPERTIES)] ;

local path ;
path ?= $(STLPORT_$(version)_PATH) ;
path ?= $(STLPORT_PATH)$(SLASH)STLport-$(version) ;

return $(path) ;
}

#############################################################################

# flags which work for any STLport version

flags intel-win32-stlport STDHDRS : [ join [ get-stlport-root ] $(SLASH)stlport ] ;
flags intel-win32-stlport STDLIBPATH <stlport-iostream>on : [ join [ get-stlport-root ] $(SLASH)lib ] ;

#

flags intel-win32-stlport STLPORT_DEFINE_VERSION <stlport-version>4.5 : 4.0 ;
flags intel-win32-stlport STLPORT_DEFINE_VERSION <stlport-version>4.5 : 4.5 ;
flags intel-win32-stlport STLPORT_DEFINE_VERSION <stlport-version>4.5.1 : 4.5 ;
flags intel-win32-stlport STLPORT_DEFINE_VERSION <stlport-version>4.5.3 : 4.5 ;

STLPORT_DEFINE_VERSION ?= 4.0 ;

if ( $(STLPORT_DEFINE_VERSION) = 4.0 ) {

# special flags for STLport 4.0

flags intel-win32-stlport DEFINES <stlport-iostream>off : __STL_NO_SGI_IOSTREAMS=1 ;
flags intel-win32-stlport UNDEFS <stlport-iostream>on : __STL_NO_SGI_IOSTREAMS ;

flags intel-win32-stlport DEFINES <runtime-build>debug : __STL_DEBUG=1 __STL_DEBUG_UNINITIALIZED=1 ;

Echo $(gBUILD_PROPERTIES) ;

} else {

# special flags for STLport 4.5 and later

flags intel-win32-stlport DEFINES <stlport-iostream>off : _STLP_NO_OWN_IOSTREAMS=1 ;
flags intel-win32-stlport UNDEFS <stlport-iostream>on : _STLP_NO_OWN_IOSTREAMS ;

flags intel-win32-stlport UNDEFS <stlport-link>dynamic : _STLP_USE_STATIC_LIB ;
flags intel-win32-stlport DEFINES <stlport-link>static : _STLP_USE_STATIC_LIB=1 ;

Echo $(gBUILD_PROPERTIES) ;

flags intel-win32-stlport DEFINES <runtime-build>debug : _STLP_DEBUG=1 _STLP_DEBUG_UNINITIALIZED=1 ;

}

# Append the old values for STDHDRS and STDLIBPATH

flags intel-win32-stlport STDHDRS : $(INTEL_STDHDRS) ;
flags intel-win32-stlport STDLIBPATH : $(INTEL_STDLIBPATH) ;
 --------------Boundary-00=_YARZTUSH3VC35YP65HG3--


Boost-Build 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