Package SCons :: Package Script
[hide private]
[frames] | no frames]

Package Script

source code

SCons.Script

This file implements the main() function used by the scons script.

Architecturally, this *is* the scons script, and will likely only be
called from the external "scons" wrapper.  Consequently, anything here
should not be, or be considered, part of the build engine.  If it's
something that we expect other software to want to use, it should go in
some other module.  If it's specific to the "scons" script invocation,
it goes here.



Submodules [hide private]

Classes [hide private]
  TargetList
Functions [hide private]
 
_Add_Arguments(alist) source code
 
_Add_Targets(tlist) source code
 
_Set_Default_Targets_Has_Been_Called(d, fs) source code
 
_Set_Default_Targets_Has_Not_Been_Called(d, fs) source code
 
_Get_Default_Targets(d, fs) source code
 
_Set_Default_Targets(env, tlist) source code
 
HelpFunction(text) source code
 
Variables(files=[], args={}) source code
 
Options(files=[], args={}) source code
Variables [hide private]
  __revision__ = 'src/engine/SCons/Script/__init__.py 5023 2010/...
  start_time = 1276578456.15
  call_stack = []
  PathVariable = <SCons.Variables.PathVariable._PathVariableClas...
  PathOption = <SCons.Options.PathOption._PathOptionClass object...
  Chmod = ActionFactory(chmod_func, chmod_strfunc)
  Copy = ActionFactory(copy_func, lambda dest, src: 'Copy("%s", ...
  Delete = ActionFactory(delete_func, delete_strfunc)
  Mkdir = ActionFactory(mkdir_func, lambda dir: 'Mkdir(%s)' % ge...
  Move = ActionFactory(move_func, lambda dest, src: 'Move("%s", ...
  Touch = ActionFactory(touch_func, lambda file: 'Touch(%s)' % g...
  CScanner = SCons.Tool.CScanner
  DScanner = SCons.Tool.DScanner
  DirScanner = SCons.Scanner.Dir.DirScanner()
  ProgramScanner = SCons.Tool.ProgramScanner
  SourceFileScanner = SCons.Tool.SourceFileScanner
  CScan = SCons.Tool.CScanner
  ARGUMENTS = {}
  ARGLIST = []
  BUILD_TARGETS = []
  COMMAND_LINE_TARGETS = []
  DEFAULT_TARGETS = []
  _build_plus_default = []
  help_text = False
  sconscript_reading = 0
  GlobalDefaultEnvironmentFunctions = ['Default', 'EnsurePythonV...
  GlobalDefaultBuilders = ['CFile', 'CXXFile', 'DVI', 'Jar', 'Ja...
  SConscript = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  Command = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  AddPostAction = <SCons.Script.SConscript.DefaultEnvironmentCal...
  AddPreAction = <SCons.Script.SConscript.DefaultEnvironmentCall...
  Alias = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  AlwaysBuild = <SCons.Script.SConscript.DefaultEnvironmentCall ...
  BuildDir = <SCons.Script.SConscript.DefaultEnvironmentCall obj...
  CFile = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  CXXFile = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  CacheDir = <SCons.Script.SConscript.DefaultEnvironmentCall obj...
  Clean = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  DVI = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  Decider = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Default = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Depends = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Dir = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  EnsurePythonVersion = <SCons.Script.SConscript.DefaultEnvironm...
  EnsureSConsVersion = <SCons.Script.SConscript.DefaultEnvironme...
  Entry = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  Execute = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Exit = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  Export = <SCons.Script.SConscript.DefaultEnvironmentCall objec...
  File = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  FindFile = <SCons.Script.SConscript.DefaultEnvironmentCall obj...
  FindInstalledFiles = <SCons.Script.SConscript.DefaultEnvironme...
  FindSourceFiles = <SCons.Script.SConscript.DefaultEnvironmentC...
  Flatten = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  GetBuildPath = <SCons.Script.SConscript.DefaultEnvironmentCall...
  GetLaunchDir = <SCons.Script.SConscript.DefaultEnvironmentCall...
  Glob = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  Help = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  Ignore = <SCons.Script.SConscript.DefaultEnvironmentCall objec...
  Import = <SCons.Script.SConscript.DefaultEnvironmentCall objec...
  Install = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  InstallAs = <SCons.Script.SConscript.DefaultEnvironmentCall ob...
  Jar = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  Java = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  JavaH = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  Library = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Literal = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Local = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  M4 = <SCons.Script.SConscript.DefaultEnvironmentCall object at...
  MSVSProject = <SCons.Script.SConscript.DefaultEnvironmentCall ...
  NoCache = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  NoClean = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  Object = <SCons.Script.SConscript.DefaultEnvironmentCall objec...
  PCH = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  PDF = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  Package = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  ParseDepends = <SCons.Script.SConscript.DefaultEnvironmentCall...
  PostScript = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  Precious = <SCons.Script.SConscript.DefaultEnvironmentCall obj...
  Program = <SCons.Script.SConscript.DefaultEnvironmentCall obje...
  RES = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  RMIC = <SCons.Script.SConscript.DefaultEnvironmentCall object ...
  Repository = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  Requires = <SCons.Script.SConscript.DefaultEnvironmentCall obj...
  SConscriptChdir = <SCons.Script.SConscript.DefaultEnvironmentC...
  SConsignFile = <SCons.Script.SConscript.DefaultEnvironmentCall...
  SharedLibrary = <SCons.Script.SConscript.DefaultEnvironmentCal...
  SharedObject = <SCons.Script.SConscript.DefaultEnvironmentCall...
  SideEffect = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  SourceCode = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  SourceSignatures = <SCons.Script.SConscript.DefaultEnvironment...
  Split = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  StaticLibrary = <SCons.Script.SConscript.DefaultEnvironmentCal...
  StaticObject = <SCons.Script.SConscript.DefaultEnvironmentCall...
  Tag = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  Tar = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
  TargetSignatures = <SCons.Script.SConscript.DefaultEnvironment...
  TypeLibrary = <SCons.Script.SConscript.DefaultEnvironmentCall ...
  Value = <SCons.Script.SConscript.DefaultEnvironmentCall object...
  VariantDir = <SCons.Script.SConscript.DefaultEnvironmentCall o...
  Zip = <SCons.Script.SConscript.DefaultEnvironmentCall object a...
Variables Details [hide private]

__revision__

Value:
'src/engine/SCons/Script/__init__.py 5023 2010/06/14 22:05:46 scons'

PathVariable

Value:
SCons.Variables.PathVariable

PathOption

Value:
SCons.Options.PathOption

Copy

Value:
ActionFactory(copy_func, lambda dest, src: 'Copy("%s", "%s")' %(dest, \
src), convert= str)

Mkdir

Value:
ActionFactory(mkdir_func, lambda dir: 'Mkdir(%s)' % get_paths_str(dir)\
)

Move

Value:
ActionFactory(move_func, lambda dest, src: 'Move("%s", "%s")' %(dest, \
src), convert= str)

Touch

Value:
ActionFactory(touch_func, lambda file: 'Touch(%s)' % get_paths_str(fil\
e))

GlobalDefaultEnvironmentFunctions

Value:
['Default',
 'EnsurePythonVersion',
 'EnsureSConsVersion',
 'Exit',
 'Export',
 'GetLaunchDir',
 'Help',
 'Import',
...

GlobalDefaultBuilders

Value:
['CFile',
 'CXXFile',
 'DVI',
 'Jar',
 'Java',
 'JavaH',
 'Library',
 'M4',
...

SConscript

Value:
_SConscript.DefaultEnvironmentCall('SConscript')

Command

Value:
_SConscript.DefaultEnvironmentCall('Command', subst= 1)

AddPostAction

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd86c>

AddPreAction

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd94c>

Alias

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd92c>

AlwaysBuild

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd96c>

BuildDir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd9ac>

CFile

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdde0c>

CXXFile

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdde4c>

CacheDir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd9ec>

Clean

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdda0c>

DVI

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdde6c>

Decider

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdda2c>

Default

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd14c>

Depends

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdda4c>

Dir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdda6c>

EnsurePythonVersion

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd04c>

EnsureSConsVersion

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd16c>

Entry

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddacc>

Execute

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddaec>

Exit

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd1ac>

Export

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd88c>

File

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddb0c>

FindFile

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddb2c>

FindInstalledFiles

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd98c>

FindSourceFiles

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd9cc>

Flatten

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddb4c>

GetBuildPath

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddb6c>

GetLaunchDir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd4ec>

Glob

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddbac>

Help

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd82c>

Ignore

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddbec>

Import

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd8ac>

Install

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddc0c>

InstallAs

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddb8c>

Jar

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdde8c>

Java

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddeac>

JavaH

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddecc>

Library

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddeec>

Literal

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddc2c>

Local

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddc6c>

M4

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddf0c>

MSVSProject

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdddec>

NoCache

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddaac>

NoClean

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdda8c>

Object

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddf2c>

PCH

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddf6c>

PDF

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddf8c>

Package

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be912c>

ParseDepends

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddbcc>

PostScript

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdde2c>

Precious

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddc8c>

Program

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddfac>

RES

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddfec>

RMIC

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddfcc>

Repository

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddc4c>

Requires

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddccc>

SConscriptChdir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdd50c>

SConsignFile

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddcac>

SharedLibrary

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddf4c>

SharedObject

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be902c>

SideEffect

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddcec>

SourceCode

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddd2c>

SourceSignatures

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddd4c>

Split

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddd0c>

StaticLibrary

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be906c>

StaticObject

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be908c>

Tag

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdddac>

Tar

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be904c>

TargetSignatures

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddd6c>

TypeLibrary

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be90ac>

Value

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bdddcc>

VariantDir

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8bddd8c>

Zip

Value:
<SCons.Script.SConscript.DefaultEnvironmentCall object at 0x8be90ec>