/
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/package.jam
(9281B)
# Copyright (c) 2005 Vladimir Prus. # Copyright 2006 Rene Rivera. # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www.boost.org/LICENSE_1_0.txt) # Provides mechanism for installing whole packages into a specific directory # structure. This is opposed to the 'install' rule, that installs a number of # targets to a single directory, and does not care about directory structure at # all. # Example usage: # # package.install boost : <properties> # : <binaries> # : <libraries> # : <headers> # ; # # This will install binaries, libraries and headers to the 'proper' location, # given by command line options --prefix, --exec-prefix, --bindir, --libdir and # --includedir. # # The rule is just a convenient wrapper, avoiding the need to define several # 'install' targets. # # The only install-related feature is <install-source-root>. It will apply to # headers only and if present, paths of headers relatively to source root will # be retained after installing. If it is not specified, then "." is assumed, so # relative paths in headers are always preserved. import "class" : new ; import option ; import project ; import feature ; import path ; import property ; import stage ; import targets ; import modules ; import os ; feature.feature install-default-prefix : : free incidental ; class package-paths { import feature ; import modules ; import option ; import os ; import path ; rule __init__ ( default-prefix ) { local explicit-options = [ MATCH --(prefix|bindir|libdir|includedir|datarootdir)=.* : [ modules.peek : ARGV ] ] ; self.has-$(explicit-options) = true ; if prefix in $(explicit-options) { # If --prefix is explicitly specified on the command line, # then we need wipe away any settings of libdir/includir that # is specified via options in config files. option.set bindir : ; option.set libdir : ; option.set includedir : ; option.set datarootdir : ; } handle-path prefix : $(default-prefix) ; handle-path libdir : $(self.prefix)/lib ; handle-path bindir : $(self.prefix)/bin ; handle-path includedir : $(self.prefix)/include ; handle-path datarootdir : $(self.prefix)/share ; } local rule handle-path ( option : default-value ) { local opt = [ option.get $(option) ] ; if $(opt) { opt = [ path.root [ path.make $(opt) ] [ path.pwd ] ] ; } else { opt = $(default-value) ; } self.$(option) = $(opt) ; } rule prefix ( ) { return $(self.prefix) ; } rule libdir ( ) { return $(self.libdir) ; } rule bindir ( ) { return $(self.bindir) ; } rule includedir ( ) { return $(self.includedir) ; } rule datarootdir ( ) { return $(self.datarootdir) ; } rule get ( option ) { if ! $(self.$(option)) { local info = [ modules.peek package : .options.$(option) ] ; local default-value = $(info[1]) ; local relative-to = $(info[2]) ; if $(self.has-$(relative-to)) { option.set $(option) ; self.has-$(option) = true ; } if [ MATCH --$(option)=(.*) : [ modules.peek : ARGV ] ] { self.has-$(option) = true ; } local adjusted-default = [ path.join [ get $(relative-to) ] $(default-value) ] ; handle-path $(option) : $(adjusted-default) ; } return $(self.$(option)) ; } } # Registers an additional path option. The option name # can then be used with a package-paths object. # # default-path is the default path that will be used if # the option is not set explicitly. It will be interpreted # relative to another option. This allows options to be # defined hierarchically with --prefix as the root. # # relative-to should be the name of another option. It defaults # to prefix. # # Example:: # # package.add-path-option cmakedir : cmake : libdir ; # cmakedir = [ $(mypaths).get cmakedir ] ; # defaults to /usr/local/lib/cmake # rule add-path-option ( name : default-path : relative-to ? ) { local value = $(default-path) $(relative-to:E=prefix) ; if $(.options.$(name)) && $(.options.$(name)) != $(value) { import errors ; errors.error Duplicate definition of $(name) ; } .options.$(name) = $(value) ; } # Returns a package-paths object that can be used # to find the various install paths. If requirements # contains <install-default-prefix> then that will be used # as the default prefix, otherwise a platform specific # default prefix will be used. All other properties # in requirements are ignored. # rule paths ( package-name : requirements * ) { local default-prefix = [ feature.get-values <install-default-prefix> : $(requirements) ] ; # Or some likely defaults if neither is given. if ! $(default-prefix) { if [ os.name ] = NT { default-prefix = C:\\$(package-name) ; } else { default-prefix = /usr/local ; } } default-prefix = [ path.make $(default-prefix) ] ; if ! $(.package-paths.$(default-prefix)) { .package-paths.$(default-prefix) = [ new package-paths $(default-prefix) ] ; } return $(.package-paths.$(default-prefix)) ; } rule install ( name package-name ? : requirements * : binaries * : libraries * : headers * ) { package-name ?= $(name) ; # If <install-source-root> is not specified, all headers are installed to # prefix/include, no matter what their relative path is. Sometimes that is # what is needed. local install-source-root = [ property.select <install-source-root> : $(requirements) ] ; install-source-root = $(install-source-root:G=) ; requirements = [ property.change $(requirements) : <install-source-root> ] ; local install-header-subdir = [ property.select <install-header-subdir> : $(requirements) ] ; install-header-subdir = /$(install-header-subdir:G=) ; install-header-subdir ?= "" ; requirements = [ property.change $(requirements) : <install-header-subdir> ] ; # First, figure out all locations. Use the default if no prefix option # given. local paths = [ paths $(package-name) : $(requirements) ] ; # Binaries. local bin-locate = [ $(paths).bindir ] ; # Object code libraries. local lib-locate = [ $(paths).libdir ] ; # Source header files. local include-locate = [ $(paths).includedir ] ; stage.install $(name)-bin : $(binaries) : $(requirements) <location>$(bin-locate) ; alias $(name)-lib : $(name)-lib-shared $(name)-lib-static ; # Since the install location of shared libraries differs on universe # and cygwin, use target alternatives to make different targets. # We should have used indirection conditioanl requirements, but it's # awkward to pass bin-locate and lib-locate from there to another rule. alias $(name)-lib-shared : $(name)-lib-shared-universe ; alias $(name)-lib-shared : $(name)-lib-shared-cygwin : <target-os>cygwin ; # For shared libraries, we install both explicitly specified one and the # shared libraries that the installed executables depend on. stage.install $(name)-lib-shared-universe : $(binaries) $(libraries) : $(requirements) <location>$(lib-locate) <install-dependencies>on <install-type>SHARED_LIB ; stage.install $(name)-lib-shared-cygwin : $(binaries) $(libraries) : $(requirements) <location>$(bin-locate) <install-dependencies>on <install-type>SHARED_LIB ; # For static libraries, we do not care about executable dependencies, since # static libraries are already incorporated into them. stage.install $(name)-lib-static : $(libraries) : $(requirements) <location>$(lib-locate) <install-dependencies>on <install-type>STATIC_LIB ; stage.install $(name)-headers : $(headers) : $(requirements) <location>$(include-locate)$(install-header-subdir) <install-source-root>$(install-source-root) ; alias $(name) : $(name)-bin $(name)-lib $(name)-headers ; local c = [ project.current ] ; modules.call-in [ $(c).project-module ] : explicit $(name) $(name)-bin $(name)-lib $(name)-headers $(name)-lib-shared $(name)-lib-static $(name)-lib-shared-universe $(name)-lib-shared-cygwin ; } rule install-data ( target-name : package-name : data * : requirements * ) { package-name ?= target-name ; local paths = [ paths $(package-name) : $(requirements) ] ; local datadir = [ $(paths).datarootdir ] ; stage.install $(target-name) : $(data) : $(requirements) <location>$(datadir)/$(package-name) ; local c = [ project.current ] ; local project-module = [ $(c).project-module ] ; module $(project-module) { explicit $(1) ; } }
Save
cmd:
run