OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """NaCl SDK tool SCons.""" | 6 """NaCl SDK tool SCons.""" |
7 | 7 |
8 import __builtin__ | 8 import __builtin__ |
9 import re | 9 import re |
10 import os | 10 import os |
11 import shutil | 11 import shutil |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 # Dependency files it produces are to be found in ${LIBPATH}. | 802 # Dependency files it produces are to be found in ${LIBPATH}. |
803 # It is applied recursively to those dependencies in case | 803 # It is applied recursively to those dependencies in case |
804 # some of them are linker scripts too. | 804 # some of them are linker scripts too. |
805 ldscript_scanner = SCons.Scanner.Base( | 805 ldscript_scanner = SCons.Scanner.Base( |
806 function=ScanLinkerScript, | 806 function=ScanLinkerScript, |
807 skeys=['.a', '.so', '.pso'], | 807 skeys=['.a', '.so', '.pso'], |
808 path_function=SCons.Scanner.FindPathDirs('LIBPATH'), | 808 path_function=SCons.Scanner.FindPathDirs('LIBPATH'), |
809 recursive=True | 809 recursive=True |
810 ) | 810 ) |
811 env.Append(SCANNERS=ldscript_scanner) | 811 env.Append(SCANNERS=ldscript_scanner) |
OLD | NEW |