| 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') |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 cpus = len([l for l in open('/proc/cpuinfo') if l.startswith('processor\t')]) | 302 cpus = len([l for l in open('/proc/cpuinfo') if l.startswith('processor\t')]) |
| 303 SetOption('num_jobs', cpus + 1) | 303 SetOption('num_jobs', cpus + 1) |
| 304 | 304 |
| 305 # For now, linux only loads the components we know work on Linux, by default. | 305 # For now, linux only loads the components we know work on Linux, by default. |
| 306 load = [ | 306 load = [ |
| 307 'base', | 307 'base', |
| 308 'breakpad', | 308 'breakpad', |
| 309 'chrome', | 309 'chrome', |
| 310 'googleurl', | 310 'googleurl', |
| 311 'net', | 311 'net', |
| 312 'sdch', |
| 312 'skia', | 313 'skia', |
| 313 'testing', | 314 'testing', |
| 314 'third_party', | 315 'third_party', |
| 315 'v8', | 316 'v8', |
| 316 'webkit', | 317 'webkit', |
| 317 ] | 318 ] |
| 318 | 319 |
| 319 excluded_warnings = [ | 320 excluded_warnings = [ |
| 320 # TODO: Clean up uses of ext/hash_map and remove this. | 321 # TODO: Clean up uses of ext/hash_map and remove this. |
| 321 # (see unordered_map and base/hash_tables.h) | 322 # (see unordered_map and base/hash_tables.h) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 347 env.ParseConfig('pkg-config --cflags --libs nss') | 348 env.ParseConfig('pkg-config --cflags --libs nss') |
| 348 | 349 |
| 349 elif env['PLATFORM'] == 'darwin': | 350 elif env['PLATFORM'] == 'darwin': |
| 350 | 351 |
| 351 # For now, mac only loads the components we know work on Mac, by default. | 352 # For now, mac only loads the components we know work on Mac, by default. |
| 352 load = [ | 353 load = [ |
| 353 'base', | 354 'base', |
| 354 #'breakpad', | 355 #'breakpad', |
| 355 'googleurl', | 356 'googleurl', |
| 356 'net', | 357 'net', |
| 358 'sdch', |
| 357 'skia', | 359 'skia', |
| 358 'testing', | 360 'testing', |
| 359 'third_party', | 361 'third_party', |
| 360 #'webkit', | 362 #'webkit', |
| 361 ] | 363 ] |
| 362 | 364 |
| 363 env.Replace( | 365 env.Replace( |
| 364 # Reproduce XCode's behavior of using gcc even to link C++, | 366 # Reproduce XCode's behavior of using gcc even to link C++, |
| 365 # and distinguishing it the -x c++ option. | 367 # and distinguishing it the -x c++ option. |
| 366 CC = 'gcc-4.2', | 368 CC = 'gcc-4.2', |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 initial_indent = ' '*32, | 561 initial_indent = ' '*32, |
| 560 subsequent_indent = ' '*32, | 562 subsequent_indent = ' '*32, |
| 561 ) | 563 ) |
| 562 components = tw.fill(', '.join(components)) | 564 components = tw.fill(', '.join(components)) |
| 563 | 565 |
| 564 Help(help_fmt % components) | 566 Help(help_fmt % components) |
| 565 | 567 |
| 566 | 568 |
| 567 Import('build_component') | 569 Import('build_component') |
| 568 Default(build_component) | 570 Default(build_component) |
| OLD | NEW |