| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 | 231 |
| 232 | 232 |
| 233 # -------------------------------------------------------------------------- | 233 # -------------------------------------------------------------------------- |
| 234 # Windows specific | 234 # Windows specific |
| 235 | 235 |
| 236 windows_env = root_env.Clone() | 236 windows_env = root_env.Clone() |
| 237 environment_list.append(windows_env) | 237 environment_list.append(windows_env) |
| 238 windows_env.Tool('target_platform_windows') | 238 windows_env.Tool('target_platform_windows') |
| 239 windows_env.Tool('target_debug') | 239 windows_env.Tool('target_debug') |
| 240 windows_env.Tool('component_targets_msvs') # Per target project support. | |
| 241 windows_env.Tool('midl') | 240 windows_env.Tool('midl') |
| 242 windows_env.Replace( | 241 windows_env.Replace( |
| 243 BUILD_TYPE = 'debug-windows', | 242 BUILD_TYPE = 'debug-windows', |
| 244 BUILD_TYPE_DESCRIPTION = 'Windows debug build', | 243 BUILD_TYPE_DESCRIPTION = 'Windows debug build', |
| 245 ) | 244 ) |
| 246 windows_env.Append(BUILD_GROUPS = ['default']) | 245 windows_env.Append(BUILD_GROUPS = ['default']) |
| 247 | 246 |
| 248 # TODO(bradnelson): this is needed for now because target_platform_windows | 247 # TODO(bradnelson): this is needed for now because target_platform_windows |
| 249 # has OS_WINDOWS defined in a weird way. | 248 # has OS_WINDOWS defined in a weird way. |
| 250 windows_env.FilterOut(CPPDEFINES = ['OS_WINDOWS=OS_WINDOWS']) | 249 windows_env.FilterOut(CPPDEFINES = ['OS_WINDOWS=OS_WINDOWS']) |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 # Invoke all the SConscripts in each of the environments that make sense on | 647 # Invoke all the SConscripts in each of the environments that make sense on |
| 649 # this host-platform. | 648 # this host-platform. |
| 650 BuildComponents(environment_list) | 649 BuildComponents(environment_list) |
| 651 | 650 |
| 652 # ------------------------------------------------------------------------- | 651 # ------------------------------------------------------------------------- |
| 653 | 652 |
| 654 # This must occur after BuildComponents so that the dependency graph | 653 # This must occur after BuildComponents so that the dependency graph |
| 655 # will be populated. | 654 # will be populated. |
| 656 if root_env.Bit('solution'): | 655 if root_env.Bit('solution'): |
| 657 solution_env = root_env.Clone(tools = ['visual_studio_solution']) | 656 solution_env = root_env.Clone(tools = ['visual_studio_solution']) |
| 658 src_solution = solution_env.Solution( | 657 solution = solution_env.Solution( |
| 659 '$MAIN_DIR/chrome_scons_src', [windows_env], | 658 '$MAIN_DIR/chrome_scons', [windows_env], |
| 660 exclude_pattern = '.*(Program Files|platformsdk_vista_6_0|cygwin).*', | 659 exclude_pattern = '.*(Program Files|platformsdk_vista_6_0|cygwin).*', |
| 661 ) | 660 ) |
| 662 | |
| 663 solution = windows_env.ComponentVSSolution('chrome_scons', | |
| 664 [ | |
| 665 'all_libraries', | |
| 666 'all_programs', | |
| 667 'all_test_programs', | |
| 668 ], | |
| 669 projects = [windows_env.File('$MAIN_DIR/chrome_scons_src.vcproj')], | |
| 670 COMPONENT_VS_SOLUTION_DIR='$MAIN_DIR', | |
| 671 COMPONENT_VS_PROJECT_DIR='$MAIN_DIR/projects', | |
| 672 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | |
| 673 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | |
| 674 ) | |
| 675 | |
| 676 Default(None) # Delete all other default targets. | 661 Default(None) # Delete all other default targets. |
| 677 Default([src_solution, solution]) # Build just the solution. | 662 Default(solution) # Build just the solution. |
| 678 | 663 |
| 679 # ------------------------------------------------------------------------- | 664 # ------------------------------------------------------------------------- |
| OLD | NEW |