SCons.Script

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]
SCons.Script.Interactive: SCons interactive mode SCons.Script.Main: SCons.Script SCons.Script.SConscript': SCons.Script.SConscript

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
Options(files=`[``]`, args=`{``}`) | source code

Variables | [hide private]
| __revision__ = ``'``src/engine/SCons/Script/__init__.py 2725 2008/``...``
| start_time = `1206993350.61`
| call_stack = ``[``]``
| PathOption = `<SCons.Options.PathOption._PathOptionClass instan`...``
| 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(lambda dest, src: os.rename(src, dest), l`...``
| 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 i`...``
| Command = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| AddPostAction = `<SCons.Script.SConscript.DefaultEnvironmentCal`...``
| AddPreAction = `<SCons.Script.SConscript.DefaultEnvironmentCall`...``
| Alias = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| AlwaysBuild = `<SCons.Script.SConscript.DefaultEnvironmentCall `...``
| BuildDir = `<SCons.Script.SConscript.DefaultEnvironmentCall ins`...``
| CFile = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| CXXFile = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| CacheDir = `<SCons.Script.SConscript.DefaultEnvironmentCall ins`...``
| Clean = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| DVI = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| Decider = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Default = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Depends = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Dir = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| EnsurePythonVersion = `<SCons.Script.SConscript.DefaultEnvironm`...``
| EnsureSConsVersion = `<SCons.Script.SConscript.DefaultEnvironme`...``
| Entry = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| Execute = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Exit = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| Export = `<SCons.Script.SConscript.DefaultEnvironmentCall insta`...``
| File = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| FindFile = `<SCons.Script.SConscript.DefaultEnvironmentCall ins`...``
| FindInstalledFiles = `<SCons.Script.SConscript.DefaultEnvironme`...``
| FindSourceFiles = `<SCons.Script.SConscript.DefaultEnvironmentC`...``
| Flatten = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| GetBuildPath = `<SCons.Script.SConscript.DefaultEnvironmentCall`...``
| GetLaunchDir = `<SCons.Script.SConscript.DefaultEnvironmentCall`...``
| Glob = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| Help = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| Ignore = `<SCons.Script.SConscript.DefaultEnvironmentCall insta`...``
| Import = `<SCons.Script.SConscript.DefaultEnvironmentCall insta`...``
| Install = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| InstallAs = `<SCons.Script.SConscript.DefaultEnvironmentCall in`...``
| Jar = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| Java = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| JavaH = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| Library = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Literal = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Local = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| M4 = `<SCons.Script.SConscript.DefaultEnvironmentCall instance `...``
| MSVSProject = `<SCons.Script.SConscript.DefaultEnvironmentCall `...``
| NoCache = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| NoClean = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| Object = `<SCons.Script.SConscript.DefaultEnvironmentCall insta`...``
| PCH = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| PDF = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| Package = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| ParseDepends = `<SCons.Script.SConscript.DefaultEnvironmentCall`...``
| PostScript = `<SCons.Script.SConscript.DefaultEnvironmentCall i`...``
| Precious = `<SCons.Script.SConscript.DefaultEnvironmentCall ins`...``
| Program = `<SCons.Script.SConscript.DefaultEnvironmentCall inst`...``
| RES = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| RMIC = `<SCons.Script.SConscript.DefaultEnvironmentCall instanc`...``
| Repository = `<SCons.Script.SConscript.DefaultEnvironmentCall i`...``
| Requires = `<SCons.Script.SConscript.DefaultEnvironmentCall ins`...``
| 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 i`...``
| SourceCode = `<SCons.Script.SConscript.DefaultEnvironmentCall i`...``
| SourceSignatures = `<SCons.Script.SConscript.DefaultEnvironment`...``
| Split = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| StaticLibrary = `<SCons.Script.SConscript.DefaultEnvironmentCal`...``
| StaticObject = `<SCons.Script.SConscript.DefaultEnvironmentCall`...``
| Tag = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| Tar = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``
| TargetSignatures = `<SCons.Script.SConscript.DefaultEnvironment`...``
| TypeLibrary = `<SCons.Script.SConscript.DefaultEnvironmentCall `...``
| Value = `<SCons.Script.SConscript.DefaultEnvironmentCall instan`...``
| VariantDir = `<SCons.Script.SConscript.DefaultEnvironmentCall i`...``
| Zip = `<SCons.Script.SConscript.DefaultEnvironmentCall instance`...``

Variables Details | [hide private]

  ### __revision__ Value:
      'src/engine/SCons/Script/__init__.py 2725 2008/03/31 12:52:02 knight'

  ### 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(lambda dest, src: os.rename(src, dest), 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 instance at 0x1d0ca28>

  ### AddPreAction Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c9e0>

  ### Alias Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c3f8>

  ### AlwaysBuild Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c3b0>

  ### BuildDir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c128>

  ### CFile Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c560>

  ### CXXFile Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c5a8>

  ### CacheDir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c0e0>

  ### Clean Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bf38>

  ### DVI Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c5f0>

  ### Decider Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bef0>

  ### Default Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0cd40>

  ### Depends Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0be18>

  ### Dir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bdd0>

  ### EnsurePythonVersion Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0ccb0>

  ### EnsureSConsVersion Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0cc20>

  ### Entry Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b368>

  ### Execute Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b320>

  ### Exit Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0cfc8>

  ### Export Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0cf80>

  ### File Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b878>

  ### FindFile Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b830>

  ### FindInstalledFiles Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b518>

  ### FindSourceFiles Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b4d0>

  ### Flatten Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bea8>

  ### GetBuildPath Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bfc8>

  ### GetLaunchDir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0cab8>

  ### Glob Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bf80>

  ### Help Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0ca70>

  ### Ignore Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0be60>

  ### Import Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c098>

  ### Install Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0bab8>

  ### InstallAs Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0ba70>

  ### Jar Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c638>

  ### Java Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c680>

  ### JavaH Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c6c8>

  ### Library Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c710>

  ### Literal Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b6c8>

  ### Local Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b680>

  ### M4 Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c758>

  ### MSVSProject Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c7a0>

  ### NoCache Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b710>

  ### NoClean Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b758>

  ### Object Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c7e8>

  ### PCH Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c830>

  ### PDF Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c878>

  ### Package Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1cbd8>

  ### ParseDepends Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0b128>

  ### PostScript Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c8c0>

  ### Precious Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c200>

  ### Program Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c908>

  ### RES Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c950>

  ### RMIC Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c998>

  ### Repository Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c248>

  ### Requires Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c290>

  ### SConscriptChdir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d0c050>

  ### SConsignFile Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c2d8>

  ### SharedLibrary Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c9e0>

  ### SharedObject Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1ca28>

  ### SideEffect Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c320>

  ### SourceCode Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c368>

  ### SourceSignatures Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c3b0>

  ### Split Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c3f8>

  ### StaticLibrary Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1ca70>

  ### StaticObject Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1cab8>

  ### Tag Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c440>

  ### Tar Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1cb00>

  ### TargetSignatures Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c488>

  ### TypeLibrary Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1cb48>

  ### Value Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c4d0>

  ### VariantDir Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1c518>

  ### Zip Value:
      <SCons.Script.SConscript.DefaultEnvironmentCall instance at 0x1d1cb90>