/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/midl.jam (5367B)
# Copyright (c) 2005 Alexey Pakhunov. # # 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) # Microsoft Interface Definition Language (MIDL) related routines import common ; import generators ; import feature : feature get-values ; import os ; import scanner ; import toolset : flags ; import type ; rule init ( ) { } type.register IDL : idl ; # A type library (.tlb) is generated by MIDL compiler and can be included # to resources of an application (.rc). In order to be found by a resource # compiler its target type should be derived from 'H' - otherwise # the property '' will be ignored. type.register MSTYPELIB : tlb : H ; # Register scanner for MIDL files class midl-scanner : scanner { import path property-set regex scanner type virtual-target ; rule __init__ ( includes * ) { scanner.__init__ ; self.includes = $(includes) ; # List of quoted strings self.re-strings = "[ \t]*\"([^\"]*)\"([ \t]*,[ \t]*\"([^\"]*)\")*[ \t]*" ; # 'import' and 'importlib' directives self.re-import = "import"$(self.re-strings)"[ \t]*;" ; self.re-importlib = "importlib[ \t]*[(]"$(self.re-strings)"[)][ \t]*;" ; # C preprocessor 'include' directive self.re-include-angle = "#[ \t]*include[ \t]*<(.*)>" ; self.re-include-quoted = "#[ \t]*include[ \t]*\"(.*)\"" ; } rule pattern ( ) { # Match '#include', 'import' and 'importlib' directives return "((#[ \t]*include|import(lib)?).+(<(.*)>|\"(.*)\").+)" ; } rule process ( target : matches * : binding ) { local included-angle = [ regex.transform $(matches) : $(self.re-include-angle) : 1 ] ; local included-quoted = [ regex.transform $(matches) : $(self.re-include-quoted) : 1 ] ; local imported = [ regex.transform $(matches) : $(self.re-import) : 1 3 ] ; local imported_tlbs = [ regex.transform $(matches) : $(self.re-importlib) : 1 3 ] ; # CONSIDER: the new scoping rule seem to defeat "on target" variables. local g = [ on $(target) return $(HDRGRIST) ] ; local b = [ NORMALIZE_PATH $(binding:D) ] ; # Attach binding of including file to included targets. # When target is directly created from virtual target # this extra information is unnecessary. But in other # cases, it allows to distinguish between two headers of the # same name included from different places. local g2 = $(g)"#"$(b) ; included-angle = $(included-angle:G=$(g)) ; included-quoted = $(included-quoted:G=$(g2)) ; imported = $(imported:G=$(g2)) ; imported_tlbs = $(imported_tlbs:G=$(g2)) ; local all = $(included-angle) $(included-quoted) $(imported) ; INCLUDES $(target) : $(all) ; DEPENDS $(target) : $(imported_tlbs) ; NOCARE $(all) $(imported_tlbs) ; SEARCH on $(included-angle) = $(self.includes:G=) ; SEARCH on $(included-quoted) = $(b) $(self.includes:G=) ; SEARCH on $(imported) = $(b) $(self.includes:G=) ; SEARCH on $(imported_tlbs) = $(b) $(self.includes:G=) ; scanner.propagate [ type.get-scanner CPP : [ property-set.create $(self.includes) ] ] : $(included-angle) $(included-quoted) : $(target) ; scanner.propagate $(__name__) : $(imported) : $(target) ; } } scanner.register midl-scanner : include ; type.set-scanner IDL : midl-scanner ; # Command line options feature midl-stubless-proxy : yes no : propagated ; feature midl-robust : yes no : propagated ; flags midl.compile.idl MIDLFLAGS yes : /Oicf ; flags midl.compile.idl MIDLFLAGS no : /Oic ; flags midl.compile.idl MIDLFLAGS yes : /robust ; flags midl.compile.idl MIDLFLAGS no : /no_robust ; # Architecture-specific options architecture-x86 = x86 ; address-model-32 = 32 ; address-model-64 = 64 ; flags midl.compile.idl MIDLFLAGS $(architecture-x86)/$(address-model-32) : /win32 ; flags midl.compile.idl MIDLFLAGS $(architecture-x86)/64 : /x64 ; flags midl.compile.idl MIDLFLAGS ia64/$(address-model-64) : /ia64 ; flags midl.compile.idl DEFINES ; flags midl.compile.idl UNDEFS ; flags midl.compile.idl INCLUDES ; generators.register-c-compiler midl.compile.idl : IDL : MSTYPELIB H C(%_i) C(%_proxy) C(%_dlldata) ; # MIDL does not always generate '%_proxy.c' and '%_dlldata.c'. This behavior # depends on contents of the source IDL file. Calling TOUCH_FILE below ensures # that both files will be created so bjam will not try to recreate them # constantly. TOUCH_FILE = [ common.file-touch-command ] ; actions compile.idl { midl /nologo @"@($(<[1]:W).rsp:E=$(nl)"$(>:W)" $(nl)-D$(DEFINES) $(nl)"-I$(INCLUDES)" $(nl)-U$(UNDEFS) $(nl)$(MIDLFLAGS) $(nl)/tlb "$(<[1]:W)" $(nl)/h "$(<[2]:W)" $(nl)/iid "$(<[3]:W)" $(nl)/proxy "$(<[4]:W)" $(nl)/dlldata "$(<[5]:W)")" $(TOUCH_FILE) "$(<[4]:W)" $(TOUCH_FILE) "$(<[5]:W)" }