summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-31 23:29:36 (GMT)
committerSteven Knight <knight@baldmt.com>2004-08-31 23:29:36 (GMT)
commite966ff8d4b3581dc6194adfb70718445a0bbb41b (patch)
tree8c051b8bc338df7ad051c421387fc5c4413ac8c2 /doc
parent6ea37f7bb442c511270e5a89cd8fbf801c81e8c2 (diff)
downloadSCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.zip
SCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.tar.gz
SCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.tar.bz2
Add a SetDefault() method and a kinder, gentler qt.py that uses it. (Christoph Wiedemann)
Diffstat (limited to 'doc')
-rw-r--r--doc/man/scons.142
1 files changed, 37 insertions, 5 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1
index 6b94453..931a46f 100644
--- a/doc/man/scons.1
+++ b/doc/man/scons.1
@@ -3589,6 +3589,19 @@ SConsignFile("/home/me/SCons/signatures")
'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.TP
+.RI env.SetDefault(key = val ", [...])"
+Sets construction variables to default values specified with the keyword
+arguments if (and only if) the variables are not already set.
+The following statements are equivalent:
+
+.ES
+env.SetDefault(FOO = 'foo')
+
+if not env.has_key('FOO'): env['FOO'] = 'foo'
+.EE
+
+'\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+.TP
.RI SetOption( name ", " value )
.TP
.RI env.SetOption( name ", " value )
@@ -5624,14 +5637,16 @@ with python's os.path.join() method,
but are listed here with the '/' separator
for easier reading.)
In addition, the construction environment
-variables CPPPATH, LIBPATH, LIBS, PROGEMITTER, SHLIBEMITTER and LIBEMITTER
+variables CPPPATH, LIBPATH and LIBS may be modified
+and the variables
+PROGEMITTER, SHLIBEMITTER and LIBEMITTER
are modified. Because the build-performance is affected when using this tool,
you have to explicitly specify it at Environment creation:
.ES
Environment(tools=['default','qt'])
.EE
-
+.IP
The qt tool supports the following operations:
.B Automatic moc file generation from header files.
@@ -5665,14 +5680,31 @@ you may need to specify duplicate=1 in calls to BuildDir. See also the correspon
Turn off scanning for mocable files. Use the Moc Builder to explicitely
specify files to run moc on.
+.IP QT_BINPATH
+The path where the qt binaries are installed.
+The default value is '$QTDIR/bin'.
+
+.IP QT_CPPPATH
+The path where the qt header files are installed.
+The default value is '$QTDIR/include'.
+Note: If you set this variable to None, the tool won't change the CPPPATH
+construction variable.
+
.IP QT_DEBUG
Prints lots of debugging information while scanning for moc files.
+.IP QT_LIBPATH
+The path where the qt libraries are installed.
+The default value is '$QTDIR/lib'.
+Note: If you set this variable to None, the tool won't change the LIBPATH
+construction variable.
+
.IP QT_LIB
-Default value is 'qt'. You may want to set this to 'qt-mt'.
+Default value is 'qt'. You may want to set this to 'qt-mt'. Note: If you set
+this variable to None, the tool won't change the LIBS variable.
.IP QT_MOC
-Default value is '$QTDIR/bin/moc'.
+Default value is '$QT_BINPATH/moc'.
.IP QT_MOCCXXPREFIX
Default value is ''. Prefix for moc output files, when source is a cxx file.
@@ -5703,7 +5735,7 @@ Default value is '$CXXFILESUFFIX'. Suffix for moc output files, when source is
a header.
.IP QT_UIC
-Default value is '$QTDIR/bin/uic'.
+Default value is '$QT_BINPATH/uic'.
.IP QT_UICDECLCOM
Command to generate header files from .ui files.