/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/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-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 : : foo bar 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 : qcc ; generators.register-c-compiler qcc.compile.c : C : OBJ : qcc ; generators.register-c-compiler qcc.compile.asm : ASM : OBJ : qcc ; # Select QCC target platform # Configuration checks don't use explicit value of QCC-TARGET-PLATFORM toolset.flags qcc QCC-TARGET-PLATFORM / : NA ; # Combinations supported by both QNX 6.5.0 and QNX 7.0.0 toolset.flags qcc QCC-TARGET-PLATFORM x86/32 : -Vgcc_ntox86 ; toolset.flags qcc QCC-TARGET-PLATFORM arm/32 : -Vgcc_ntoarmv7le ; # Combinations supported by QNX 7.0.0 toolset.flags qcc QCC-TARGET-PLATFORM x86/64 : -Vgcc_ntox86_64 ; toolset.flags qcc QCC-TARGET-PLATFORM arm/64 : -Vgcc_ntoaarch64le ; # Combinations supported by QNX 6.5.0 toolset.flags qcc QCC-TARGET-PLATFORM power/32 : -Vgcc_ntoppcbe ; toolset.flags qcc QCC-TARGET-PLATFORM mips1/32 : -Vgcc_ntomipsle ; # There are also excluded alternatives (supported by QNX 6.5.0) # toolset.flags qcc QCC-TARGET-PLATFORM arm/32 : -Vgcc_ntoarmle ; # toolset.flags qcc QCC-TARGET-PLATFORM power/32 : -Vgcc_ntoppcbespe ; # toolset.flags qcc QCC-TARGET-PLATFORM mips1/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 on : -gstabs+ ; # Declare flags and action for compilation. toolset.flags qcc.compile OPTIONS off : -O0 ; toolset.flags qcc.compile OPTIONS speed : -O3 ; toolset.flags qcc.compile OPTIONS space : -Os ; toolset.flags qcc.compile OPTIONS off : -Wc,-fno-inline ; toolset.flags qcc.compile OPTIONS on : -Wc,-Wno-inline ; toolset.flags qcc.compile OPTIONS full : -Wc,-finline-functions -Wc,-Wno-inline ; toolset.flags qcc.compile OPTIONS off : -w ; toolset.flags qcc.compile OPTIONS all : -Wc,-Wall ; toolset.flags qcc.compile OPTIONS extra : -Wc,-Wall -Wc,-Wextra ; toolset.flags qcc.compile OPTIONS pedantic : -Wc,-Wall -Wc,-Wextra -Wc,-pedantic ; toolset.flags qcc.compile OPTIONS on : -Wc,-Werror ; toolset.flags qcc.compile OPTIONS on : -p ; toolset.flags qcc.compile OPTIONS hidden : -fvisibility=hidden ; toolset.flags qcc.compile.c++ OPTIONS hidden : -fvisibility-inlines-hidden ; toolset.flags qcc.compile OPTIONS protected : -fvisibility=protected ; toolset.flags qcc.compile OPTIONS global : -fvisibility=default ; toolset.flags qcc.compile OPTIONS ; toolset.flags qcc.compile.c++ OPTIONS ; toolset.flags qcc.compile DEFINES ; toolset.flags qcc.compile INCLUDES ; toolset.flags qcc.compile OPTIONS shared : -shared ; toolset.flags qcc.compile.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 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 static in [ $(property-set).raw ] { local m ; if [ id ] = "qcc.link.dll" { m = "on qcc, DLL can't be build with 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 static options is not possible " ; } } } if $(m) { errors.user-error $(m) : "It is suggested to use" "static together with static." ; } } return [ unix-linking-generator.generated-targets $(sources) : $(property-set) : $(project) $(name) ] ; } } generators.register [ new qcc-linking-generator qcc.link : LIB OBJ : EXE : qcc ] ; generators.register [ new qcc-linking-generator qcc.link.dll : LIB OBJ : SHARED_LIB : 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 on : -gstabs+ ; toolset.flags qcc.link OPTIONS on : -p ; toolset.flags qcc.link OPTIONS ; toolset.flags qcc.link LINKPATH ; toolset.flags qcc.link FINDLIBS-ST ; toolset.flags qcc.link FINDLIBS-SA ; toolset.flags qcc.link LIBRARIES ; toolset.flags qcc.link FINDLIBS-SA : m ; # For static we made sure there are no dynamic libraries in the # link. toolset.flags qcc.link OPTIONS static : -static ; # Assuming this is just like with gcc. toolset.flags qcc.link RPATH : : unchecked ; toolset.flags qcc.link RPATH_LINK : : 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) = 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) = 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) }