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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 windows_opt.Tool('target_optimized') | 331 windows_opt.Tool('target_optimized') |
332 windows_opt.ApplySConscript(['$CHROME_SRC_DIR/build/release.scons']) | 332 windows_opt.ApplySConscript(['$CHROME_SRC_DIR/build/release.scons']) |
333 | 333 |
334 # -------------------------------------------------------------------------- | 334 # -------------------------------------------------------------------------- |
335 # Linux specific | 335 # Linux specific |
336 | 336 |
337 linux_env = root_env.Clone() | 337 linux_env = root_env.Clone() |
338 linux_env.Tool('target_platform_linux') | 338 linux_env.Tool('target_platform_linux') |
339 linux_env.Tool('yacc') | 339 linux_env.Tool('yacc') |
340 | 340 |
| 341 # By default scons will depend on the first path element for any command line. |
| 342 # For example, it will resolve 'gcc' with $PATH and depend on that for any |
| 343 # action which runs gcc. This disables this behaviour: |
| 344 linux_env['IMPLICIT_COMMAND_DEPENDENCIES'] = False |
| 345 |
341 # TODO(bradnelson): this is needed for now because target_platform_linux has | 346 # TODO(bradnelson): this is needed for now because target_platform_linux has |
342 # OS_LINUX defined in a weird way. | 347 # OS_LINUX defined in a weird way. |
343 linux_env.FilterOut(CPPDEFINES = ['OS_LINUX=OS_LINUX']) | 348 linux_env.FilterOut(CPPDEFINES = ['OS_LINUX=OS_LINUX']) |
344 | 349 |
345 # Copy some environment variables from the outer environment to the | 350 # Copy some environment variables from the outer environment to the |
346 # SCons.Environment if they exist. | 351 # SCons.Environment if they exist. |
347 for envvar in ('CC', 'CXX', 'LINK'): | 352 for envvar in ('CC', 'CXX', 'LINK'): |
348 if envvar in os.environ: | 353 if envvar in os.environ: |
349 linux_env[envvar] = os.environ[envvar] | 354 linux_env[envvar] = os.environ[envvar] |
350 # Copy these environment variables from the outer environment to the | 355 # Copy these environment variables from the outer environment to the |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 'all_libraries', | 690 'all_libraries', |
686 'all_languages', | 691 'all_languages', |
687 'all_programs', | 692 'all_programs', |
688 'all_test_programs', | 693 'all_test_programs', |
689 ], projects = [p], | 694 ], projects = [p], |
690 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 695 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
691 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 696 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
692 ) | 697 ) |
693 | 698 |
694 # ------------------------------------------------------------------------- | 699 # ------------------------------------------------------------------------- |
OLD | NEW |