/usr/share/boost-build/src/tools
NameSizeModeActions
doxygen/-0755rm
features/-0755rm
generators/-0755rm
types/-0755rm
xsltproc/-0755rm
acc.jam48000644editdlrm
asciidoctor.jam64800644editdlrm
auto-index.jam83240644editdlrm
bison.jam5890644editdlrm
boostbook-config.jam3890644editdlrm
boostbook.jam240560644editdlrm
borland.jam99920644editdlrm
builtin.jam30370644editdlrm
bzip2.jam80660644editdlrm
cast.jam32370644editdlrm
clang-darwin.jam67130644editdlrm
clang-linux.jam99840644editdlrm
clang-vxworks.jam40260644editdlrm
clang-win.jam60940644editdlrm
clang.jam23100644editdlrm
common.jam316790644editdlrm
como-linux.jam35280644editdlrm
como-win.jam42370644editdlrm
como.jam20630644editdlrm
convert.jam19870644editdlrm
cray.jam411280644editdlrm
cw-config.jam12830644editdlrm
cw.jam95490644editdlrm
cygwin.jam4030644editdlrm
darwin.jam221650644editdlrm
diab.jam43070644editdlrm
dmc.jam60940644editdlrm
docutils.jam34440644editdlrm
doxproc.py366210644editdlrm
doxygen-config.jam3880644editdlrm
doxygen.jam247450644editdlrm
embarcadero.jam214870644editdlrm
emscripten.jam37790644editdlrm
flags.jam45700644editdlrm
fop.jam16930644editdlrm
fortran.jam19890644editdlrm
gcc.jam552880644editdlrm
generate.jam33390644editdlrm
gettext.jam76630644editdlrm
gfortran.jam10080644editdlrm
hpfortran.jam9020644editdlrm
hp_cxx.jam80890644editdlrm
ifort.jam14950644editdlrm
intel-darwin.jam97850644editdlrm
intel-linux.jam91930644editdlrm
intel-vxworks.jam70850644editdlrm
intel-win.jam163960644editdlrm
intel.jam26260644editdlrm
lex.jam5590644editdlrm
libjpeg.jam73620644editdlrm
libpng.jam71040644editdlrm
libtiff.jam72080644editdlrm
link.jam150210644editdlrm
lzma.jam32770644editdlrm
make.jam22660644editdlrm
mc.jam13110644editdlrm
message.jam16670644editdlrm
midl.jam53670644editdlrm
mipspro.jam52910644editdlrm
mpi.jam218260644editdlrm
msvc-config.jam3930644editdlrm
msvc.jam846720644editdlrm
notfile.jam16540644editdlrm
openssl.jam36130644editdlrm
package.jam92810644editdlrm
pathscale.jam66290644editdlrm
pch.jam27190644editdlrm
pgi.jam48790644editdlrm
pkg-config.jam134430644editdlrm
python-config.jam8360644editdlrm
python.jam436790644editdlrm
qcc.jam108360644editdlrm
qt.jam5300644editdlrm
qt3.jam68100644editdlrm
qt4.jam239740644editdlrm
qt5.jam265170644editdlrm
quickbook-config.jam12660644editdlrm
quickbook.jam132770644editdlrm
rc.jam53640644editdlrm
sass.jam57020644editdlrm
saxonhe.jam13290644editdlrm
stage.jam285130644editdlrm
stlport.jam118800644editdlrm
sun.jam80540644editdlrm
symlink.jam43510644editdlrm
testing-aux.jam102380644editdlrm
testing.jam278890644editdlrm
unix.jam58470644editdlrm
vacpp.jam57250644editdlrm
vmsdecc.jam201850644editdlrm
whale.jam32530644editdlrm
xlcpp.jam61210644editdlrm
xlf.jam9000644editdlrm
xsltproc-config.jam8380644editdlrm
xsltproc.jam56030644editdlrm
zlib.jam69760644editdlrm
zstd.jam24460644editdlrm
Edit: /usr/share/boost-build/src/tools/bzip2.jam (8066B)
# Copyright (c) 2010 Vladimir Prus. # Copyright (c) 2013 Steven Watanabe # # 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) # Supports the bzip library # # After 'using bzip2', the following targets are available: # # /bzip2//bzip2 -- The bzip library import project ; import ac ; import errors ; import feature ; import "class" : new ; import targets ; import path ; import modules ; import indirect ; import make ; import os ; import print ; import property ; import property-set ; header = bzlib.h ; names = bz2 ; sources = blocksort.c bzlib.c compress.c crctable.c decompress.c huffman.c randtable.c ; library-id = 0 ; if --debug-configuration in [ modules.peek : ARGV ] { .debug = true ; } # Initializes the bzip library. # # bzip can be configured either to use pre-existing binaries # or to build the library from source. # # Options for configuring a prebuilt bzip:: # # # The directory containing the bzip binaries. # # Overrides the default library name. # # The directory containing the bzip headers. # # If none of these options is specified, then the environmental # variables BZIP2_LIBRARY_PATH, BZIP2_NAME, and BZIP2_INCLUDE will # be used instead. # # Options for building bzip from source:: # # # The bzip source directory. Defaults to the environmental variable # BZIP2_SOURCE. # # A rule which computes the actual name of the compiled # libraries based on the build properties. Ignored # when using precompiled binaries. # # The base name to use for the compiled library. Ignored # when using precompiled binaries. # # Examples:: # # # Find bzip in the default system location # using bzip2 ; # # Build bzip from source # using bzip2 : 1.0.6 : /home/sergey/src/bzip2-1.0.6 ; # # Find bzip in /usr/local # using bzip2 : 1.0.6 # : /usr/local/include /usr/local/lib ; # # Build bzip from source for msvc and find # # prebuilt binaries for gcc. # using bzip2 : 1.0.6 : C:/Devel/src/bzip2-1.0.6 : msvc ; # using bzip2 : 1.0.6 : : gcc ; # rule init ( version ? # The bzip version (currently ignored) : options * # A list of the options to use : requirements * # The requirements for the bzip target : is-default ? # Default configurations are only used when bzip # has not yet been configured. This option is # deprecated. A configuration will be treated # as a default when none of , , # , and are present. ) { local caller = [ project.current ] ; if ! $(.initialized) { .initialized = true ; project.initialize $(__name__) ; .project = [ project.current ] ; project bzip2 ; } local library-path = [ feature.get-values : $(options) ] ; local include-path = [ feature.get-values : $(options) ] ; local source-path = [ feature.get-values : $(options) ] ; local library-name = [ feature.get-values : $(options) ] ; local tag = [ feature.get-values : $(options) ] ; local build-name = [ feature.get-values : $(options) ] ; if ! $(library-path) && ! $(include-path) && ! $(source-path) && ! $(library-name) { is-default = true ; } condition = [ property-set.create $(requirements) ] ; condition = [ property-set.create [ $(condition).base ] ] ; local no-build-from-source ; # Ignore environmental BZIP2_SOURCE if this initialization # requested to search for a specific pre-built library. if $(library-path) || $(include-path) || $(library-name) { if $(source-path) || $(tag) || $(build-name) { errors.user-error "incompatible options for bzip2:" [ property.select : $(options) ] "and" [ property.select : $(options) ] ; } } else { source-path ?= [ os.environ BZIP2_SOURCE ] ; if $(source-path) { source-path = [ path.root [ path.make $(source-path) ] [ path.pwd ] ] ; } } if $(.configured.$(condition)) { if $(is-default) { if $(.debug) { ECHO "notice: [bzip2] bzip is already configured" ; } } else { errors.user-error "bzip is already configured" ; } return ; } else if $(source-path) { build-name ?= bz2 ; library-id = [ CALC $(library-id) + 1 ] ; tag = [ MATCH ^@?(.*)$ : $(tag) ] ; if $(tag) { tag = [ indirect.make $(tag) : [ $(caller).project-module ] ] ; } sources = [ path.glob $(source-path) : $(sources) ] ; def-file = [ path.glob $(source-path) : libbz2.def ] ; if $(.debug) { ECHO "notice: [bzip2] Building bzip from source as $(build-name)" ; if $(condition) { ECHO "notice: [bzip2] Condition" [ $(condition).raw ] ; } if $(sources) { ECHO "notice: [bzip2] found bzip source in $(source-path)" ; } else { ECHO "warning: [bzip2] could not find bzip source in $(source-path)" ; } } local target ; if $(sources) { if ! $(.def-file-target) { .def-file-target = [ targets.create-metatarget make-target-class : $(.project) : libbz2.def : $(def-file) : @bzip2.make-bz2-def-file ] ; } target = [ targets.create-typed-target LIB : $(.project) : $(build-name).$(library-id) : $(sources) : $(requirements) @$(tag) $(source-path) msvc:_CRT_SECURE_NO_DEPRECATE msvc:_SCL_SECURE_NO_DEPRECATE shared:libbz2.def : : $(source-path) ] ; } local mt = [ new ac-library bzip2 : $(.project) : $(condition) ] ; $(mt).set-header $(header) ; $(mt).set-default-names $(names) ; if $(target) { $(mt).set-target $(target) ; } targets.main-target-alternative $(mt) ; } else { if $(.debug) { ECHO "notice: [bzip2] Using pre-installed library" ; if $(condition) { ECHO "notice: [bzip2] Condition" [ $(condition).raw ] ; } } local mt = [ new ac-library bzip2 : $(.project) : $(condition) : $(include-path) : $(library-path) : $(library-name) ] ; $(mt).set-header $(header) ; $(mt).set-default-names $(names) ; targets.main-target-alternative $(mt) ; } .configured.$(condition) = true ; } if [ os.name ] = NT { local rule read-file ( file ) { return [ SPLIT_BY_CHARACTERS [ SHELL "type \"$(file:G=)\" 2>nul" ] : "\n" ] ; } } else if [ os.name ] = VMS { local rule read-file ( file ) { return [ SPLIT_BY_CHARACTERS [ SHELL "PIPE TYPE $(file:W) 2>NL:" ] : "\n" ] ; } } else { local rule read-file ( file ) { return [ SPLIT_BY_CHARACTERS [ SHELL "cat \"$(file:G=)\" 2>/dev/null" ] : "\n" ] ; } } rule make-bz2-def-file ( target : source : properties * ) { print.output $(target) ; for local line in [ read-file $(source) ] { if ! [ MATCH "(LIBRARY[ \t]+LIBBZ2)" : $(line) ] { print.text $(line) : yes ; } } }