diff options
author | Steven Knight <knight@baldmt.com> | 2002-07-12 06:17:59 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-07-12 06:17:59 (GMT) |
commit | 721c0b5439329cce1a68d44c0e58204a83d9d354 (patch) | |
tree | 640ad8f81638eaf79461675d47418643fbb2e6b1 /src/engine/SCons/Script | |
parent | 25846c09acbebca4f41664a76dfc6175b3617e90 (diff) | |
download | SCons-721c0b5439329cce1a68d44c0e58204a83d9d354.zip SCons-721c0b5439329cce1a68d44c0e58204a83d9d354.tar.gz SCons-721c0b5439329cce1a68d44c0e58204a83d9d354.tar.bz2 |
Added --implicit-deps-unchanged option. Added GetLaunchDir() function. Added SetBuildSignatureType() function. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Script')
-rw-r--r-- | src/engine/SCons/Script/SConscript.py | 15 | ||||
-rw-r--r-- | src/engine/SCons/Script/__init__.py | 9 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py index 0f65732..48c4046 100644 --- a/src/engine/SCons/Script/SConscript.py +++ b/src/engine/SCons/Script/SConscript.py @@ -39,6 +39,7 @@ import SCons.Node.FS import SCons.Platform import SCons.Tool import SCons.Util +import SCons.Sig import os import os.path @@ -48,6 +49,7 @@ import sys default_targets = [] print_help = 0 arguments = {} +launch_dir = os.path.abspath(os.curdir) # global exports set by Export(): global_exports = {} @@ -243,6 +245,17 @@ def Import(*vars): except KeyError,x: raise SCons.Errors.UserError, "Import of non-existant variable '%s'"%x +def GetLaunchDir(): + return launch_dir + +def SetBuildSignatureType(type): + if type == 'build': + SCons.Sig.build_signature = 1 + elif type == 'content': + SCons.Sig.build_signature = 0 + else: + raise SCons.Errors.UserError, "Unknown build signature type '%s'"%type + def BuildDefaultGlobals(): """ Create a dictionary containing all the default globals for @@ -281,4 +294,6 @@ def BuildDefaultGlobals(): globals['Split'] = SCons.Util.Split globals['Tool'] = SCons.Tool.Tool globals['WhereIs'] = SCons.Util.WhereIs + globals['GetLaunchDir'] = GetLaunchDir + globals['SetBuildSignatureType'] = SetBuildSignatureType return globals diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index 6f87353..1d53fed 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -550,6 +550,15 @@ def options_init(): long = ['implicit-cache'], help = "Cache implicit dependencies") + def opt_implicit_deps_unchanged(opt, arg): + import SCons.Node + SCons.Node.implicit_cache = 1 + SCons.Node.implicit_deps_unchanged = 1 + + Option(func = opt_implicit_deps_unchanged, + long = ['implicit-deps-unchanged'], + help = "Ignore changes in implicit deps.") + def opt_j(opt, arg): global num_jobs try: |