/
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/qcc.jam
(10836B)
# Copyright (c) 2001 David Abrahams. # Copyright (c) 2002-2003 Rene Rivera. # Copyright (c) 2002-2003 Vladimir Prus. # Copyright (c) 2020 Alexander Karzhenkov. # # 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) import "class" : new ; import common ; import errors ; import feature ; import generators ; import os ; import property ; import set ; import toolset ; import type ; import unix ; feature.extend toolset : qcc ; toolset.inherit-generators qcc : unix : unix.link unix.link.dll ; toolset.inherit-flags qcc : unix ; toolset.inherit-rules qcc : unix ; # Initializes the qcc toolset for the given version. If necessary, command may # be used to specify where the compiler is located. The parameter 'options' is a # space-delimited list of options, each one being specified as # <option-name>option-value. Valid option names are: cxxflags, linkflags and # linker-type. Accepted values for linker-type are gnu and sun, gnu being the # default. # # Example: # using qcc : 3.4 : : <cxxflags>foo <linkflags>bar <linker-type>sun ; # rule init ( version ? : command * : options * ) { local condition = [ common.check-init-parameters qcc : version $(version) ] ; local command = [ common.get-invocation-command qcc : QCC : $(command) ] ; common.handle-options qcc : $(condition) : $(command) : $(options) ; } generators.register-c-compiler qcc.compile.c++ : CPP : OBJ : <toolset>qcc ; generators.register-c-compiler qcc.compile.c : C : OBJ : <toolset>qcc ; generators.register-c-compiler qcc.compile.asm : ASM : OBJ : <toolset>qcc ; # Select QCC target platform # Configuration checks don't use explicit value of QCC-TARGET-PLATFORM toolset.flags qcc QCC-TARGET-PLATFORM <architecture>/<address-model> : NA ; # Combinations supported by both QNX 6.5.0 and QNX 7.0.0 toolset.flags qcc QCC-TARGET-PLATFORM <architecture>x86/<address-model>32 : -Vgcc_ntox86 ; toolset.flags qcc QCC-TARGET-PLATFORM <architecture>arm/<address-model>32 : -Vgcc_ntoarmv7le ; # Combinations supported by QNX 7.0.0 toolset.flags qcc QCC-TARGET-PLATFORM <architecture>x86/<address-model>64 : -Vgcc_ntox86_64 ; toolset.flags qcc QCC-TARGET-PLATFORM <architecture>arm/<address-model>64 : -Vgcc_ntoaarch64le ; # Combinations supported by QNX 6.5.0 toolset.flags qcc QCC-TARGET-PLATFORM <architecture>power/<address-model>32 : -Vgcc_ntoppcbe ; toolset.flags qcc QCC-TARGET-PLATFORM <architecture>mips1/<address-model>32 : -Vgcc_ntomipsle ; # There are also excluded alternatives (supported by QNX 6.5.0) # toolset.flags qcc QCC-TARGET-PLATFORM <architecture>arm/<address-model>32 : -Vgcc_ntoarmle ; # toolset.flags qcc QCC-TARGET-PLATFORM <architecture>power/<address-model>32 : -Vgcc_ntoppcbespe ; # toolset.flags qcc QCC-TARGET-PLATFORM <architecture>mips1/<address-model>32 : -Vgcc_ntomipsbe ; local rule check-target-platform { local opt = [ on $(1) return $(QCC-TARGET-PLATFORM) ] ; if $(opt) = NA { # Configuration checks are performed QCC-TARGET-PLATFORM on $(1) = ; } else if ! $(opt) { errors.user-error "Unsupported achitecture / address model" ; } } # Declare flags for compilation. toolset.flags qcc.compile OPTIONS <debug-symbols>on : -gstabs+ ; # Declare flags and action for compilation. toolset.flags qcc.compile OPTIONS <optimization>off : -O0 ; toolset.flags qcc.compile OPTIONS <optimization>speed : -O3 ; toolset.flags qcc.compile OPTIONS <optimization>space : -Os ; toolset.flags qcc.compile OPTIONS <inlining>off : -Wc,-fno-inline ; toolset.flags qcc.compile OPTIONS <inlining>on : -Wc,-Wno-inline ; toolset.flags qcc.compile OPTIONS <inlining>full : -Wc,-finline-functions -Wc,-Wno-inline ; toolset.flags qcc.compile OPTIONS <warnings>off : -w ; toolset.flags qcc.compile OPTIONS <warnings>all : -Wc,-Wall ; toolset.flags qcc.compile OPTIONS <warnings>extra : -Wc,-Wall -Wc,-Wextra ; toolset.flags qcc.compile OPTIONS <warnings>pedantic : -Wc,-Wall -Wc,-Wextra -Wc,-pedantic ; toolset.flags qcc.compile OPTIONS <warnings-as-errors>on : -Wc,-Werror ; toolset.flags qcc.compile OPTIONS <profiling>on : -p ; toolset.flags qcc.compile OPTIONS <local-visibility>hidden : -fvisibility=hidden ; toolset.flags qcc.compile.c++ OPTIONS <local-visibility>hidden : -fvisibility-inlines-hidden ; toolset.flags qcc.compile OPTIONS <local-visibility>protected : -fvisibility=protected ; toolset.flags qcc.compile OPTIONS <local-visibility>global : -fvisibility=default ; toolset.flags qcc.compile OPTIONS <cflags> ; toolset.flags qcc.compile.c++ OPTIONS <cxxflags> ; toolset.flags qcc.compile DEFINES <define> ; toolset.flags qcc.compile INCLUDES <include> ; toolset.flags qcc.compile OPTIONS <link>shared : -shared ; toolset.flags qcc.compile.c++ TEMPLATE_DEPTH <c++-template-depth> ; rule compile.c++ { # Here we want to raise the template-depth parameter value to something # higher than the default value of 17. Note that we could do this using the # feature.set-default rule but we do not want to set the default value for # all toolsets as well. # # TODO: This 'modified default' has been inherited from some 'older Boost # Build implementation' and has most likely been added to make some Boost # library parts compile correctly. We should see what exactly prompted this # and whether we can get around the problem more locally. local template-depth = [ on $(1) return $(TEMPLATE_DEPTH) ] ; if ! $(template-depth) { TEMPLATE_DEPTH on $(1) = 128 ; } check-target-platform $(1) ; } actions compile.c++ { "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -Wc,-ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } rule compile.c { check-target-platform $(1) ; } actions compile.c { "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -lang-c $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } rule compile.asm { check-target-platform $(1) ; } actions compile.asm { "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } # The class checking that we do not try to use the <runtime-link>static property # while creating or using a shared library, since it is not supported by qcc/ # /libc. # class qcc-linking-generator : unix-linking-generator { rule generated-targets ( sources + : property-set : project name ? ) { if <runtime-link>static in [ $(property-set).raw ] { local m ; if [ id ] = "qcc.link.dll" { m = "on qcc, DLL can't be build with <runtime-link>static" ; } if ! $(m) { for local s in $(sources) { local type = [ $(s).type ] ; if $(type) && [ type.is-derived $(type) SHARED_LIB ] { m = "on qcc, using DLLS together with the <runtime-link>static options is not possible " ; } } } if $(m) { errors.user-error $(m) : "It is suggested to use" "<runtime-link>static together with <link>static." ; } } return [ unix-linking-generator.generated-targets $(sources) : $(property-set) : $(project) $(name) ] ; } } generators.register [ new qcc-linking-generator qcc.link : LIB OBJ : EXE : <toolset>qcc ] ; generators.register [ new qcc-linking-generator qcc.link.dll : LIB OBJ : SHARED_LIB : <toolset>qcc ] ; generators.override qcc.prebuilt : builtin.prebuilt ; generators.override qcc.searched-lib-generator : searched-lib-generator ; # Declare flags for linking. # First, the common flags. toolset.flags qcc.link OPTIONS <debug-symbols>on : -gstabs+ ; toolset.flags qcc.link OPTIONS <profiling>on : -p ; toolset.flags qcc.link OPTIONS <linkflags> ; toolset.flags qcc.link LINKPATH <library-path> ; toolset.flags qcc.link FINDLIBS-ST <find-static-library> ; toolset.flags qcc.link FINDLIBS-SA <find-shared-library> ; toolset.flags qcc.link LIBRARIES <library-file> ; toolset.flags qcc.link FINDLIBS-SA : m ; # For <runtime-link>static we made sure there are no dynamic libraries in the # link. toolset.flags qcc.link OPTIONS <runtime-link>static : -static ; # Assuming this is just like with gcc. toolset.flags qcc.link RPATH : <dll-path> : unchecked ; toolset.flags qcc.link RPATH_LINK : <xdll-path> : unchecked ; # Declare actions for linking. # rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; # Serialize execution of the 'link' action, since running N links in # parallel is just slower. For now, serialize only qcc links while it might # be a good idea to serialize all links. JAM_SEMAPHORE on $(targets) = <s>qcc-link-semaphore ; check-target-platform $(1) ; } actions link bind LIBRARIES { "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(OPTIONS) } # Always remove archive and start again. Here is the rationale from Andre Hentz: # I had a file, say a1.c, that was included into liba.a. I moved a1.c to a2.c, # updated my Jamfiles and rebuilt. My program was crashing with absurd errors. # After some debugging I traced it back to the fact that a1.o was *still* in # liba.a RM = [ common.rm-command ] ; if [ os.name ] = NT { RM = "if exist \"$(<[1])\" DEL \"$(<[1])\"" ; } # Declare action for creating static libraries. The 'r' letter means to add # files to the archive with replacement. Since we remove the archive, we do not # care about replacement, but there is no option to "add without replacement". # The 'c' letter suppresses warnings in case the archive does not exists yet. # That warning is produced only on some platforms, for whatever reasons. # # Use qcc driver to create archive, see # http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/q/qcc.html rule archive { check-target-platform $(1) ; } actions piecemeal archive { $(RM) "$(<)" "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -A "$(<)" "$(>)" } rule link.dll ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; JAM_SEMAPHORE on $(targets) = <s>qcc-link-semaphore ; check-target-platform $(1) ; } # Differ from 'link' above only by -shared. # actions link.dll bind LIBRARIES { "$(CONFIG_COMMAND)" $(QCC-TARGET-PLATFORM) -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -o "$(<)" -Wl,-h$(SPACE)-Wl,$(<[1]:D=) -shared "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(OPTIONS) }
Save
cmd:
run