OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Software construction toolkit site_scons configuration. | 6 """Software construction toolkit site_scons configuration. |
7 | 7 |
8 This module sets up SCons for use with this toolkit. This should contain setup | 8 This module sets up SCons for use with this toolkit. This should contain setup |
9 which occurs outside of environments. If a method operates within the context | 9 which occurs outside of environments. If a method operates within the context |
10 of an environment, it should instead go in a tool in site_tools and be invoked | 10 of an environment, it should instead go in a tool in site_tools and be invoked |
11 for the target environment. | 11 for the target environment. |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 # Since our site dir was specified on the SCons command line, SCons will | 341 # Since our site dir was specified on the SCons command line, SCons will |
342 # normally only look at our site dir. Add back checking for project-local | 342 # normally only look at our site dir. Add back checking for project-local |
343 # site_scons directories. | 343 # site_scons directories. |
344 if not SCons.Script.GetOption('no_site_dir'): | 344 if not SCons.Script.GetOption('no_site_dir'): |
345 SCons.Script.Main._load_site_scons_dir( | 345 SCons.Script.Main._load_site_scons_dir( |
346 SCons.Node.FS.get_default_fs().SConstruct_dir, None) | 346 SCons.Node.FS.get_default_fs().SConstruct_dir, None) |
347 | 347 |
348 | 348 |
349 # Run main code | 349 # Run main code |
350 SiteInitMain() | 350 SiteInitMain() |
OLD | NEW |