summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-23 12:11:42 (GMT)
committerSteven Knight <knight@baldmt.com>2004-05-23 12:11:42 (GMT)
commitd157a17661410b67ad01cefa8d60b4c265185738 (patch)
tree9c3de3248b5a9de87ec2e166227213fc768ac202 /src
parent6f16c7447f7aa3be24662edf48fbf4466448cd9c (diff)
downloadSCons-d157a17661410b67ad01cefa8d60b4c265185738.zip
SCons-d157a17661410b67ad01cefa8d60b4c265185738.tar.gz
SCons-d157a17661410b67ad01cefa8d60b4c265185738.tar.bz2
Add support for fetching command-line arguments by position number. (Gary Oberbrunner)
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt9
-rw-r--r--src/engine/SCons/Script/SConscript.py3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 7aaabf5..57166df 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -25,6 +25,9 @@ RELEASE 0.96 - XXX
- Suppress null values in construction variables like $LIBS that use
the internal _concat() function.
+ - Remove .dll files from the construction variables searched for
+ libraries that can be fed to Win32 compilers.
+
From Chad Austin and Christoph Wiedemann:
- Add support for a $RPATH variable to supply a list of directories
@@ -139,6 +142,9 @@ RELEASE 0.96 - XXX
- Try to find the ICL license file path name in the external environment
and the registry before resorting to the hard-coded path name.
+ - Add support for fetching command-line keyword=value arguments in
+ order from an ARGLIST list.
+
From Simon Perkins:
- Fix a bug introduced in building shared libraries under MinGW.
@@ -150,6 +156,9 @@ RELEASE 0.96 - XXX
- If Visual Studio is installed, assume the C/C++ compiler, the linker
and the MIDL compiler that comes with it are available, too.
+ - Better error messages when evaluating a construction variable
+ expansion yields a Python syntax error.
+
From sam th:
- Allow SConf.CheckLib() to search a list of libraries, like the
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py
index 6a414b7..405ce71 100644
--- a/src/engine/SCons/Script/SConscript.py
+++ b/src/engine/SCons/Script/SConscript.py
@@ -61,6 +61,7 @@ def do_nothing(text): pass
HelpFunction = do_nothing
Arguments = {}
+ArgList = []
CommandLineTargets = []
DefaultCalled = None
DefaultTargets = []
@@ -88,6 +89,7 @@ def _scons_add_args(alist):
for arg in alist:
a, b = string.split(arg, '=', 1)
Arguments[a] = b
+ ArgList.append((a, b))
def _scons_add_targets(tlist):
if tlist:
@@ -684,6 +686,7 @@ def BuildDefaultGlobals():
# Other variables we provide.
'ARGUMENTS' : Arguments,
+ 'ARGLIST' : ArgList,
'BUILD_TARGETS' : BuildTargets,
'COMMAND_LINE_TARGETS' : CommandLineTargets,
'DEFAULT_TARGETS' : DefaultTargets,