OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 import shutil | 6 import shutil |
7 import sys | 7 import sys |
8 | 8 |
9 | 9 |
10 p = ARGUMENTS.get('PROGRESS') | 10 p = ARGUMENTS.get('PROGRESS') |
11 if p == 'spinner': | 11 if p == 'spinner': |
12 Progress(['/\r', '|\r', '\\\r', '-\r'], interval=5, file=open('con', 'w')) | 12 Progress(['/\r', '|\r', '\\\r', '-\r'], interval=5, file=open('con', 'w')) |
13 elif p == 'name': | 13 elif p == 'name': |
14 Progress('$TARGET\r', overwrite=True, file=open('con', 'w')) | 14 Progress('$TARGET\r', overwrite=True, file=open('con', 'w')) |
15 | 15 |
16 | 16 |
17 SetOption('warn', ['no-missing-sconscript'] + GetOption('warn')) | 17 default_warnings = ['no-missing-sconscript', 'no-no-parallel-support'] |
| 18 SetOption('warn', default_warnings + GetOption('warn')) |
18 | 19 |
19 | 20 |
20 load = ARGUMENTS.get('LOAD') | 21 load = ARGUMENTS.get('LOAD') |
21 if load: | 22 if load: |
22 load = load.split(',') | 23 load = load.split(',') |
23 else: | 24 else: |
24 load = [] | 25 load = [] |
25 | 26 |
26 | 27 |
27 env = Environment( | 28 env = Environment( |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 initial_indent = ' '*32, | 539 initial_indent = ' '*32, |
539 subsequent_indent = ' '*32, | 540 subsequent_indent = ' '*32, |
540 ) | 541 ) |
541 components = tw.fill(', '.join(components)) | 542 components = tw.fill(', '.join(components)) |
542 | 543 |
543 Help(help_fmt % components) | 544 Help(help_fmt % components) |
544 | 545 |
545 | 546 |
546 Import('build_component') | 547 Import('build_component') |
547 Default(build_component) | 548 Default(build_component) |
OLD | NEW |