/
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/cw.jam
(9549B)
# Copyright (C) Reece H Dunn 2004 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #| tag::doc[] [[bbv2.reference.tools.compiler.cw]] = Code Warrior The `cw` module support CodeWarrior compiler, originally produced by Metrowerks and presently developed by Freescale. B2 supports only the versions of the compiler that target x86 processors. All such versions were released by Metrowerks before acquisition and are not sold any longer. The last version known to work is 9.4. The module is initialized using the following syntax: ---- using cw : [version] : [c++-compile-command] : [compiler options] ; ---- This statement may be repeated several times, if you want to configure several versions of the compiler. If the command is not specified, B2 will search for a binary named `mwcc` in default installation paths and in PATH. The following options can be provided, using _`<option-name>option-value syntax`_: `cflags`:: Specifies additional compiler flags that will be used when compiling C sources. `cxxflags`:: Specifies additional compiler flags that will be used when compiling C++ sources. `compileflags`:: Specifies additional compiler flags that will be used when compiling both C and C++ sources. `linkflags`:: Specifies additional command line options that will be passed to the linker. `setup`:: The command that sets up environment variables prior to invoking the compiler. If not specified, `cwenv.bat` alongside the compiler binary will be used. `compiler`:: The command that compiles C and C++ sources. If not specified, `mwcc` will be used. The command will be invoked after the setup script was executed and adjusted the PATH variable. `linker`:: The command that links executables and dynamic libraries. If not specified, `mwld` will be used. The command will be invoked after the setup script was executed and adjusted the PATH variable. |# # end::doc[] # based on the msvc.jam toolset import property ; import generators ; import os ; import type ; import toolset : flags ; import errors : error ; import feature : feature get-values ; import path ; import sequence : unique ; import common ; if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] { .debug-configuration = true ; } feature.extend toolset : cw ; toolset.add-requirements <toolset>cw,<runtime-link>shared:<threading>multi ; nl = " " ; rule init ( version ? : command * : options * ) { # TODO: fix the $(command[1]) = $(compiler) issue setup = [ get-values <setup> : $(options) ] ; setup ?= cwenv.bat ; compiler = [ get-values <compiler> : $(options) ] ; compiler ?= mwcc ; linker = [ get-values <linker> : $(options) ] ; linker ?= mwld ; local condition = [ common.check-init-parameters cw : version $(version) ] ; command = [ common.get-invocation-command cw : mwcc.exe : $(command) : [ default-paths $(version) ] ] ; common.handle-options cw : $(condition) : $(command) : $(options) ; local root = [ feature.get-values <root> : $(options) ] ; if $(command) { command = [ common.get-absolute-tool-path $(command[-1]) ] ; } local tool-root = $(command) ; setup = $(tool-root)\\$(setup) ; # map the batch file in setup so it can be executed other-tools = $(tool-root:D) ; root ?= $(other-tools:D) ; flags cw.link RUN_PATH $(condition) : "$(root)\\Win32-x86 Support\\Libraries\\Runtime" "$(root)\\Win32-x86 Support\\Libraries\\Runtime\\Libs\\MSL_All-DLLs" ; setup = "set \"CWFOLDER="$(root)"\" && call \""$(setup)"\" > nul " ; if [ os.name ] = NT { setup = $(setup)" " ; } else { setup = "cmd /S /C "$(setup)" \"&&\" " ; } # bind the setup command to the tool so it can be executed before the # command local prefix = $(setup) ; flags cw.compile .CC $(condition) : $(prefix)$(compiler) ; flags cw.link .LD $(condition) : $(prefix)$(linker) ; flags cw.archive .LD $(condition) : $(prefix)$(linker) ; if [ MATCH "^([89]\\.)" : $(version) ] { if [ os.name ] = NT { # The runtime libraries flags cw.compile CFLAGS <runtime-link>static/<threading>single/<runtime-debugging>off : -runtime ss ; flags cw.compile CFLAGS <runtime-link>static/<threading>single/<runtime-debugging>on : -runtime ssd ; flags cw.compile CFLAGS <runtime-link>static/<threading>multi/<runtime-debugging>off : -runtime sm ; flags cw.compile CFLAGS <runtime-link>static/<threading>multi/<runtime-debugging>on : -runtime smd ; flags cw.compile CFLAGS <runtime-link>shared/<runtime-debugging>off : -runtime dm ; flags cw.compile CFLAGS <runtime-link>shared/<runtime-debugging>on : -runtime dmd ; } } } local rule default-paths ( version ? ) # FIXME { local possible-paths ; local ProgramFiles = [ common.get-program-files-dir ] ; # TODO: add support for cw8 and cw9 detection local version-6-path = $(ProgramFiles)"\\Metrowerks\\CodeWarrior" ; possible-paths += $(version-6-path) ; # perform post-processing possible-paths = $(possible-paths)"\\Other Metrowerks Tools\\Command Line Tools" ; possible-paths += [ modules.peek : PATH Path path ] ; return $(possible-paths) ; } ## declare generators generators.register-c-compiler cw.compile.c++ : CPP : OBJ : <toolset>cw ; generators.register-c-compiler cw.compile.c : C : OBJ : <toolset>cw ; generators.register-linker cw.link : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : EXE : <toolset>cw ; generators.register-linker cw.link.dll : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB IMPORT_LIB : <toolset>cw ; generators.register-archiver cw.archive : OBJ : STATIC_LIB : <toolset>cw ; ## compilation phase flags cw WHATEVER <toolset-cw:version> ; flags cw.compile CFLAGS <debug-symbols>on : -g ; flags cw.compile CFLAGS <optimization>off : -O0 ; flags cw.compile CFLAGS <optimization>speed : -O4,p ; flags cw.compile CFLAGS <optimization>space : -O4,s ; flags cw.compile CFLAGS <inlining>off : -inline off ; flags cw.compile CFLAGS <inlining>on : -inline on ; flags cw.compile CFLAGS <inlining>full : -inline all ; flags cw.compile CFLAGS <exception-handling>off : -Cpp_exceptions off ; flags cw.compile CFLAGS <rtti>on : -RTTI on ; flags cw.compile CFLAGS <rtti>off : -RTTI off ; flags cw.compile CFLAGS <warnings>on : -w on ; flags cw.compile CFLAGS <warnings>off : -w off ; flags cw.compile CFLAGS <warnings>all : -w all ; flags cw.compile CFLAGS <warnings>extra : -w all ; flags cw.compile CFLAGS <warnings>pedantic : -w all ; flags cw.compile CFLAGS <warnings-as-errors>on : -w error ; flags cw.compile USER_CFLAGS <cflags> : ; flags cw.compile.c++ USER_CFLAGS <cxxflags> : ; flags cw.compile DEFINES <define> ; flags cw.compile UNDEFS <undef> ; flags cw.compile INCLUDES <include> ; actions compile.c { $(.CC) -c -cwd include -lang c -U$(UNDEFS) $(CFLAGS) $(USER_CFLAGS) -I- -o "$(<)" @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)")" } actions compile.c++ { $(.CC) -c -cwd include -lang c++ -U$(UNDEFS) $(CFLAGS) $(USER_CFLAGS) -I- -o "$(<)" @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)")" } ## linking phase flags cw.link DEF_FILE <def-file> ; flags cw LINKFLAGS : -search ; flags cw LINKFLAGS <debug-symbols>on : -g ; flags cw LINKFLAGS <user-interface>console : -subsystem console ; flags cw LINKFLAGS <user-interface>gui : -subsystem windows ; flags cw LINKFLAGS <user-interface>wince : -subsystem wince ; flags cw LINKFLAGS <user-interface>native : -subsystem native ; flags cw LINKFLAGS <user-interface>auto : -subsystem auto ; flags cw LINKFLAGS <main-target-type>LIB/<link>static : -library ; flags cw.link USER_LINKFLAGS <linkflags> ; flags cw.link LINKPATH <library-path> ; flags cw.link FINDLIBS_ST <find-static-library> ; flags cw.link FINDLIBS_SA <find-shared-library> ; flags cw.link LIBRARY_OPTION <toolset>cw : "" : unchecked ; flags cw.link LIBRARIES_MENTIONED_BY_FILE : <library-file> ; rule link.dll ( targets + : sources * : properties * ) { DEPENDS $(<) : [ on $(<) return $(DEF_FILE) ] ; } if [ os.name ] in NT { actions archive { if exist "$(<[1])" DEL "$(<[1])" $(.LD) -library -o "$(<[1])" @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)$(LIBRARIES_MENTIONED_BY_FILE) $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_ST:S=.lib)" $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_SA:S=.lib)")" } } else # cygwin { actions archive { _bbv2_out_="$(<)" if test -f "$_bbv2_out_" ; then _bbv2_existing_="$(<:W)" fi $(.LD) -library -o "$(<:W)" $_bbv2_existing_ @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)$(LIBRARIES_MENTIONED_BY_FILE) $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_ST:S=.lib)" $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_SA:S=.lib)")" } } actions link bind DEF_FILE { $(.LD) -o "$(<[1]:W)" -L"$(LINKPATH)" $(LINKFLAGS) $(USER_LINKFLAGS) @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)$(LIBRARIES_MENTIONED_BY_FILE) $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_ST:S=.lib)" $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_SA:S=.lib)")" } actions link.dll bind DEF_FILE { $(.LD) -shared -o "$(<[1]:W)" -implib "$(<[2]:W)" -L"$(LINKPATH)" $(LINKFLAGS) -f"$(DEF_FILE)" $(USER_LINKFLAGS) @"@($(<[1]:W).rsp:E=$(nl)"$(>)" $(nl)$(LIBRARIES_MENTIONED_BY_FILE) $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_ST:S=.lib)" $(nl)"$(LIBRARY_OPTION)$(FINDLIBS_SA:S=.lib)")" }
Save
cmd:
run