/
usr
/
share
/
boost-build
/
src
/
tools
/
/usr/share/boost-build/src/tools
mkdir
upload
Name
Size
Mode
Actions
doxygen/
-
0755
rm
features/
-
0755
rm
generators/
-
0755
rm
types/
-
0755
rm
xsltproc/
-
0755
rm
acc.jam
4800
0644
edit
dl
rm
asciidoctor.jam
6480
0644
edit
dl
rm
auto-index.jam
8324
0644
edit
dl
rm
bison.jam
589
0644
edit
dl
rm
boostbook-config.jam
389
0644
edit
dl
rm
boostbook.jam
24056
0644
edit
dl
rm
borland.jam
9992
0644
edit
dl
rm
builtin.jam
3037
0644
edit
dl
rm
bzip2.jam
8066
0644
edit
dl
rm
cast.jam
3237
0644
edit
dl
rm
clang-darwin.jam
6713
0644
edit
dl
rm
clang-linux.jam
9984
0644
edit
dl
rm
clang-vxworks.jam
4026
0644
edit
dl
rm
clang-win.jam
6094
0644
edit
dl
rm
clang.jam
2310
0644
edit
dl
rm
common.jam
31679
0644
edit
dl
rm
como-linux.jam
3528
0644
edit
dl
rm
como-win.jam
4237
0644
edit
dl
rm
como.jam
2063
0644
edit
dl
rm
convert.jam
1987
0644
edit
dl
rm
cray.jam
41128
0644
edit
dl
rm
cw-config.jam
1283
0644
edit
dl
rm
cw.jam
9549
0644
edit
dl
rm
cygwin.jam
403
0644
edit
dl
rm
darwin.jam
22165
0644
edit
dl
rm
diab.jam
4307
0644
edit
dl
rm
dmc.jam
6094
0644
edit
dl
rm
docutils.jam
3444
0644
edit
dl
rm
doxproc.py
36621
0644
edit
dl
rm
doxygen-config.jam
388
0644
edit
dl
rm
doxygen.jam
24745
0644
edit
dl
rm
embarcadero.jam
21487
0644
edit
dl
rm
emscripten.jam
3779
0644
edit
dl
rm
flags.jam
4570
0644
edit
dl
rm
fop.jam
1693
0644
edit
dl
rm
fortran.jam
1989
0644
edit
dl
rm
gcc.jam
55288
0644
edit
dl
rm
generate.jam
3339
0644
edit
dl
rm
gettext.jam
7663
0644
edit
dl
rm
gfortran.jam
1008
0644
edit
dl
rm
hpfortran.jam
902
0644
edit
dl
rm
hp_cxx.jam
8089
0644
edit
dl
rm
ifort.jam
1495
0644
edit
dl
rm
intel-darwin.jam
9785
0644
edit
dl
rm
intel-linux.jam
9193
0644
edit
dl
rm
intel-vxworks.jam
7085
0644
edit
dl
rm
intel-win.jam
16396
0644
edit
dl
rm
intel.jam
2626
0644
edit
dl
rm
lex.jam
559
0644
edit
dl
rm
libjpeg.jam
7362
0644
edit
dl
rm
libpng.jam
7104
0644
edit
dl
rm
libtiff.jam
7208
0644
edit
dl
rm
link.jam
15021
0644
edit
dl
rm
lzma.jam
3277
0644
edit
dl
rm
make.jam
2266
0644
edit
dl
rm
mc.jam
1311
0644
edit
dl
rm
message.jam
1667
0644
edit
dl
rm
midl.jam
5367
0644
edit
dl
rm
mipspro.jam
5291
0644
edit
dl
rm
mpi.jam
21826
0644
edit
dl
rm
msvc-config.jam
393
0644
edit
dl
rm
msvc.jam
84672
0644
edit
dl
rm
notfile.jam
1654
0644
edit
dl
rm
openssl.jam
3613
0644
edit
dl
rm
package.jam
9281
0644
edit
dl
rm
pathscale.jam
6629
0644
edit
dl
rm
pch.jam
2719
0644
edit
dl
rm
pgi.jam
4879
0644
edit
dl
rm
pkg-config.jam
13443
0644
edit
dl
rm
python-config.jam
836
0644
edit
dl
rm
python.jam
43679
0644
edit
dl
rm
qcc.jam
10836
0644
edit
dl
rm
qt.jam
530
0644
edit
dl
rm
qt3.jam
6810
0644
edit
dl
rm
qt4.jam
23974
0644
edit
dl
rm
qt5.jam
26517
0644
edit
dl
rm
quickbook-config.jam
1266
0644
edit
dl
rm
quickbook.jam
13277
0644
edit
dl
rm
rc.jam
5364
0644
edit
dl
rm
sass.jam
5702
0644
edit
dl
rm
saxonhe.jam
1329
0644
edit
dl
rm
stage.jam
28513
0644
edit
dl
rm
stlport.jam
11880
0644
edit
dl
rm
sun.jam
8054
0644
edit
dl
rm
symlink.jam
4351
0644
edit
dl
rm
testing-aux.jam
10238
0644
edit
dl
rm
testing.jam
27889
0644
edit
dl
rm
unix.jam
5847
0644
edit
dl
rm
vacpp.jam
5725
0644
edit
dl
rm
vmsdecc.jam
20185
0644
edit
dl
rm
whale.jam
3253
0644
edit
dl
rm
xlcpp.jam
6121
0644
edit
dl
rm
xlf.jam
900
0644
edit
dl
rm
xsltproc-config.jam
838
0644
edit
dl
rm
xsltproc.jam
5603
0644
edit
dl
rm
zlib.jam
6976
0644
edit
dl
rm
zstd.jam
2446
0644
edit
dl
rm
Edit:
/usr/share/boost-build/src/tools/stlport.jam
(11880B)
# Copyright Gennadiy Rozental # Copyright 2006 Rene Rivera # Copyright 2003, 2004, 2006 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # The STLPort is usable by means of 'stdlib' feature. When # stdlib=stlport is specified, default version of STLPort will be used, # while stdlib=stlport-4.5 will use specific version. # The subfeature value 'hostios' means to use host compiler's iostreams. # # The specific version of stlport is selected by features: # The <runtime-link> feature selects between static and shared library # The <runtime-debugging>on selects STLPort with debug symbols # and stl debugging. # There's no way to use STLPort with debug symbols but without # stl debugging. # TODO: must implement selection of different STLPort installations based # on used toolset. # Also, finish various flags: # # This is copied from V1 toolset, "+" means "implemented" #+flags $(CURR_TOOLSET) DEFINES <stlport-iostream>off : _STLP_NO_OWN_IOSTREAMS=1 _STLP_HAS_NO_NEW_IOSTREAMS=1 ; #+flags $(CURR_TOOLSET) DEFINES <stlport-extensions>off : _STLP_NO_EXTENSIONS=1 ; # flags $(CURR_TOOLSET) DEFINES <stlport-anachronisms>off : _STLP_NO_ANACHRONISMS=1 ; # flags $(CURR_TOOLSET) DEFINES <stlport-cstd-namespace>global : _STLP_VENDOR_GLOBAL_CSTD=1 ; # flags $(CURR_TOOLSET) DEFINES <exception-handling>off : _STLP_NO_EXCEPTIONS=1 ; # flags $(CURR_TOOLSET) DEFINES <stlport-debug-alloc>on : _STLP_DEBUG_ALLOC=1 ; #+flags $(CURR_TOOLSET) DEFINES <runtime-build>debug : _STLP_DEBUG=1 _STLP_DEBUG_UNINITIALIZED=1 ; #+flags $(CURR_TOOLSET) DEFINES <runtime-link>dynamic : _STLP_USE_DYNAMIC_LIB=1 ; import feature : feature subfeature ; import project ; import "class" : new ; import targets ; import property-set ; import common ; import type ; # Make this module into a project. project.initialize $(__name__) ; project stlport ; # The problem: how to request to use host compiler's iostreams? # # Solution 1: Global 'stlport-iostream' feature. # That's ugly. Subfeature make more sense for stlport-specific thing. # Solution 2: Use subfeature with two values, one of which ("use STLPort iostream") # is default. # The problem is that such subfeature will appear in target paths, and that's ugly # Solution 3: Use optional subfeature with only one value. feature.extend stdlib : stlport ; feature.compose <stdlib>stlport : <library>/stlport//stlport ; # STLport iostreams or native iostreams subfeature stdlib stlport : iostream : hostios : optional propagated ; # STLport extensions subfeature stdlib stlport : extensions : noext : optional propagated ; # STLport anachronisms -- NOT YET SUPPORTED # subfeature stdlib stlport : anachronisms : on off ; # STLport debug allocation -- NOT YET SUPPORTED #subfeature stdlib stlport : debug-alloc : off on ; # Declare a special target class to handle the creation of search-lib-target # instances for STLport. We need a special class, because otherwise we'll have # - declare prebuilt targets for all possible toolsets. And by the time 'init' # is called we don't even know the list of toolsets that are registered # - when host iostreams are used, we really should produce nothing. It would # be hard/impossible to achieve this using prebuilt targets. class stlport-target-class : basic-target { import feature project type errors generators ; import set : difference ; rule __init__ ( project : headers ? : libraries * : version ? ) { basic-target.__init__ stlport : $(project) ; self.headers = $(headers) ; self.libraries = $(libraries) ; self.version = $(version) ; self.version.5 = [ MATCH "^(5[.][0123456789]+).*" : $(version) ] ; local requirements ; requirements += <stdlib-stlport:version>$(self.version) ; requirements += <relevant>runtime-debugging ; requirements += <relevant>toolset ; requirements += <relevant>runtime-link ; self.requirements = [ property-set.create $(requirements) ] ; } rule generate ( property-set ) { # Since this target is built with <stdlib>stlport, it will also # have <library>/stlport//stlport in requirements, which will # cause a loop in main target references. Remove that property # manually. property-set = [ property-set.create [ difference [ $(property-set).raw ] : <library>/stlport//stlport <stdlib>stlport ] ] ; return [ basic-target.generate $(property-set) ] ; } rule construct ( name : source-targets * : property-set ) { # Deduce the name of stlport library, based on toolset and # debug setting. local raw = [ $(property-set).raw ] ; local hostios = [ feature.get-values <stdlib-stlport:iostream> : $(raw) ] ; local toolset = [ feature.get-values <toolset> : $(raw) ] ; if $(self.version.5) { # Version 5.x # STLport host IO streams no longer supported. So we always # need libraries. # name: stlport(stl)?[dg]?(_static)?.M.R local name = stlport ; if [ feature.get-values <runtime-debugging> : $(raw) ] = "on" { name += stl ; switch $(toolset) { case gcc* : name += g ; case darwin* : name += g ; case * : name += d ; } } if [ feature.get-values <runtime-link> : $(raw) ] = "static" { name += _static ; } # Starting with version 5.2.0, the STLport static libraries no # longer include a version number in their name local version.pre.5.2 = [ MATCH "^(5[.][01]+).*" : $(version) ] ; if $(version.pre.5.2) || [ feature.get-values <runtime-link> : $(raw) ] != "static" { name += .$(self.version.5) ; } name = $(name:J=) ; if [ feature.get-values <install-dependencies> : $(raw) ] = "on" { #~ Allow explicitly asking to install the STLport lib by #~ referring to it directly: #~ /stlport//stlport/<install-dependencies>on #~ This allows for install packaging of all libs one might need #~ for a standalone distribution. import path : make : path-make ; local runtime-link = [ feature.get-values <runtime-link> : $(raw) ] ; local lib-file.props = [ property-set.create $(raw) <link>$(runtime-link) ] ; local lib-file.prefix = [ type.generated-target-prefix $(runtime-link:U)_LIB : $(lib-file.props) ] ; local lib-file.suffix = [ type.generated-target-suffix $(runtime-link:U)_LIB : $(lib-file.props) ] ; lib-file.prefix ?= "" "lib" ; lib-file.suffix ?= "" ; local lib-file = [ GLOB $(self.libraries) [ modules.peek : PATH ] : $(lib-file.prefix)$(name).$(lib-file.suffix) ] ; lib-file = [ new file-reference [ path-make $(lib-file[1]) ] : $(self.project) ] ; lib-file = [ $(lib-file).generate "" ] ; local lib-file.requirements = [ targets.main-target-requirements [ $(lib-file.props).raw ] <file>$(lib-file[-1]) : $(self.project) ] ; return [ generators.construct $(self.project) $(name) : LIB : $(lib-file.requirements) ] ; } else { #~ Otherwise, it is just regular library usage. return [ generators.construct $(self.project) $(name) : SEARCHED_LIB : $(property-set) ] ; } } else if ! $(hostios) && $(toolset) != msvc { # We don't need libraries if host istreams are used. For # msvc, automatic library selection will be used. # name: stlport_<toolset>(_stldebug)? local name = stlport ; name = $(name)_$(toolset) ; if [ feature.get-values <runtime-debugging> : $(raw) ] = "on" { name = $(name)_stldebug ; } return [ generators.construct $(self.project) $(name) : SEARCHED_LIB : $(property-set) ] ; } else { return [ property-set.empty ] ; } } rule compute-usage-requirements ( subvariant ) { local usage-requirements = <include>$(self.headers) <dll-path>$(self.libraries) <library-path>$(self.libraries) ; local rproperties = [ $(subvariant).build-properties ] ; # CONSIDER: should this "if" sequence be replaced with # some use of 'property-map' class? if [ $(rproperties).get <runtime-debugging> ] = "on" { usage-requirements += <define>_STLP_DEBUG=1 <define>_STLP_DEBUG_UNINITIALIZED=1 ; } if [ $(rproperties).get <runtime-link> ] = "shared" { usage-requirements += <define>_STLP_USE_DYNAMIC_LIB=1 ; } if [ $(rproperties).get <stdlib-stlport:extensions> ] = noext { usage-requirements += <define>_STLP_NO_EXTENSIONS=1 ; } if [ $(rproperties).get <stdlib-stlport:iostream> ] = hostios { usage-requirements += <define>_STLP_NO_OWN_IOSTREAMS=1 <define>_STLP_HAS_NO_NEW_IOSTREAMS=1 ; } if $(self.version.5) { # Version 5.x if [ $(rproperties).get <threading> ] = "single" { # Since STLport5 doesn't normally support single-thread # we force STLport5 into the multi-thread mode. Hence # getting what other libs provide of single-thread code # linking against a multi-thread lib. usage-requirements += <define>_STLP_THREADS=1 ; } } return [ property-set.create $(usage-requirements) ] ; } } rule stlport-target ( headers ? : libraries * : version ? ) { local project = [ project.current ] ; targets.main-target-alternative [ new stlport-target-class $(project) : $(headers) : $(libraries) : $(version) ] ; } local .version-subfeature-defined ; # Initialize stlport support. rule init ( version ? : headers : # Location of header files libraries * # Location of libraries, lib and bin subdirs of STLport. ) { # FIXME: need to use common.check-init-parameters here. # At the moment, that rule always tries to define subfeature # of the 'toolset' feature, while we need to define subfeature # of <stdlib>stlport, so tweaks to check-init-parameters are needed. if $(version) { if ! $(.version-subfeature-defined) { feature.subfeature stdlib stlport : version : : propagated ; .version-subfeature-defined = true ; } feature.extend-subfeature stdlib stlport : version : $(version) ; } # Declare the main target for this STLPort version. stlport-target $(headers) : $(libraries) : $(version) ; }
Save
cmd:
run