/
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/qt3.jam
(6810B)
# Copyright 2006 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # Support for the Qt GUI library version 3 # (http://www.trolltech.com/products/qt3/index.html). # For new developments, it is recommended to use Qt4 via the qt4 B2 # module. import modules ; import feature ; import errors ; import type ; import "class" : new ; import generators ; import project ; import toolset : flags ; # Convert this module into a project, so that we can declare targets here. project.initialize $(__name__) ; project qt3 ; # Initialized the QT support module. The 'prefix' parameter tells where QT is # installed. When not given, environmental variable QTDIR should be set. # rule init ( prefix ? ) { if ! $(prefix) { prefix = [ modules.peek : QTDIR ] ; if ! $(prefix) { errors.error "QT installation prefix not given and QTDIR variable is empty" ; } } if $(.initialized) { if $(prefix) != $(.prefix) { errors.error "Attempt the reinitialize QT with different installation prefix" ; } } else { .initialized = true ; .prefix = $(prefix) ; generators.register-standard qt3.moc : H : CPP(moc_%) : <allow>qt3 ; # Note: the OBJ target type here is fake, take a look at # qt4.jam/uic-h-generator for explanations that apply in this case as # well. generators.register [ new moc-h-generator-qt3 qt3.moc.cpp : MOCCABLE_CPP : OBJ : <allow>qt3 ] ; # The UI type is defined in types/qt.jam, and UIC_H is only used in # qt.jam, but not in qt4.jam, so define it here. type.register UIC_H : : H ; generators.register-standard qt3.uic-h : UI : UIC_H : <allow>qt3 ; # The following generator is used to convert UI files to CPP. It creates # UIC_H from UI, and constructs CPP from UI/UIC_H. In addition, it also # returns UIC_H target, so that it can be mocced. class "qt::uic-cpp-generator" : generator { rule __init__ ( ) { generator.__init__ qt3.uic-cpp : UI UIC_H : CPP : <allow>qt3 ; } rule run ( project name ? : properties * : sources + ) { # Consider this: # obj test : test_a.cpp : <optimization>off ; # # This generator will somehow be called in this case, and, # will fail -- which is okay. However, if there are <library> # properties they will be converted to sources, so the size of # 'sources' will be more than 1. In this case, the base generator # will just crash -- and that's not good. Just use a quick test # here. local result ; if ! $(sources[2]) { # Construct CPP as usual result = [ generator.run $(project) $(name) : $(properties) : $(sources) ] ; # If OK, process UIC_H with moc. It's pretty clear that # the object generated with UIC will have Q_OBJECT macro. if $(result) { local action = [ $(result[1]).action ] ; local sources = [ $(action).sources ] ; local mocced = [ generators.construct $(project) $(name) : CPP : $(properties) : $(sources[2]) ] ; result += $(mocced[2-]) ; } } return $(result) ; } } generators.register [ new "qt::uic-cpp-generator" ] ; # Finally, declare prebuilt target for QT library. local usage-requirements = <include>$(.prefix)/include <dll-path>$(.prefix)/lib <library-path>$(.prefix)/lib <allow>qt3 ; lib qt : : <name>qt-mt <threading>multi : : $(usage-requirements) ; lib qt : : <name>qt <threading>single : : $(usage-requirements) ; } } class moc-h-generator-qt3 : generator { rule __init__ ( * : * ) { generator.__init__ $(1) : $(2) : $(3) : $(4) : $(5) : $(6) : $(7) : $(8) : $(9) ; } rule run ( project name ? : property-set : sources * ) { if ! $(sources[2]) && [ $(sources[1]).type ] = MOCCABLE_CPP { name = [ $(sources[1]).name ] ; name = $(name:B) ; local a = [ new action $(sources[1]) : qt3.moc.cpp : $(property-set) ] ; local target = [ new file-target $(name) : MOC : $(project) : $(a) ] ; local r = [ virtual-target.register $(target) ] ; # Since this generator will return a H target, the linking generator # won't use it at all, and won't set any dependency on it. However, # we need the target to be seen by bjam, so that the dependency from # sources to this generated header is detected -- if Jam does not # know about this target, it won't do anything. DEPENDS all : [ $(r).actualize ] ; return $(r) ; } } } # Query the installation directory. This is needed in at least two scenarios. # First, when re-using sources from the Qt-Tree. Second, to "install" custom Qt # plugins to the Qt-Tree. # rule directory { return $(.prefix) ; } # -f forces moc to include the processed source file. Without it, it would think # that .qpp is not a header and would not include it from the generated file. # actions moc { $(.prefix)/bin/moc -f $(>) -o $(<) } # When moccing .cpp files, we don't need -f, otherwise generated code will # include .cpp and we'll get duplicated symbols. # actions moc.cpp { $(.prefix)/bin/moc $(>) -o $(<) } space = " " ; # Sometimes it's required to make 'plugins' available during uic invocation. To # help with this we add paths to all dependency libraries to uic commane line. # The intention is that it's possible to write # # exe a : ... a.ui ... : <uses>some_plugin ; # # and have everything work. We'd add quite a bunch of unrelated paths but it # won't hurt. # flags qt3.uic-h LIBRARY_PATH <xdll-path> ; actions uic-h { $(.prefix)/bin/uic $(>) -o $(<) -L$(space)$(LIBRARY_PATH) } flags qt3.uic-cpp LIBRARY_PATH <xdll-path> ; # The second target is uic-generated header name. It's placed in build dir, but # we want to include it using only basename. actions uic-cpp { $(.prefix)/bin/uic $(>[1]) -i $(>[2]:D=) -o $(<) -L$(space)$(LIBRARY_PATH) }
Save
cmd:
run