summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-05-16 11:09:27 (GMT)
committerSteven Knight <knight@baldmt.com>2003-05-16 11:09:27 (GMT)
commit487877ee4058bf8586c3a44b44202d161ec2441f (patch)
tree5dc7d3bcddf8c0d3221a073fc016492d768f286b /doc
parentbc2756c1cb3a48d9fdcbd6d85c43fc3276fc7e96 (diff)
downloadSCons-487877ee4058bf8586c3a44b44202d161ec2441f.zip
SCons-487877ee4058bf8586c3a44b44202d161ec2441f.tar.gz
SCons-487877ee4058bf8586c3a44b44202d161ec2441f.tar.bz2
Have the Tool() method add the tool name to the construction variable. (David Snopek)
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.119
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 99ddfa0..ec28669 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -2944,6 +2944,10 @@ The command line used to call the TeX formatter and typesetter.
.IP TEXFLAGS
General options passed to the TeX formatter and typesetter.
+.IP TOOLS
+A list of the names of the Tool specifications
+that are part of this construction environment.
+
.IP WIN32_INSERT_DEF
When this is set to true,
a library build of a WIN32 shared library (.dll file)
@@ -4170,6 +4174,21 @@ tools keyword of the Environment() method.
env = Environment(tools = [ Tool('msvc') ])
.EE
+The object may be called with a construction
+environment as an argument,
+in which case the object will be
+add the necessary variables
+to the construction environment
+and the name of the tool will be added to the
+.B $TOOLS
+construction variable.
+
+.ES
+env = Environment()
+t = Tool('msvc')
+t(env) # adds 'msvc' to the TOOLS variable
+.EE
+
.TP
.RI Value( value )
Returns a Node object representing the specified Python value. Value