Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: build/SConscript.main

Issue 9184: Unrollback the Scons changes, they weren't the cause of the problem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | site_scons/site_tools/component_targets_msvs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
240 windows_env.Tool('midl') 241 windows_env.Tool('midl')
241 windows_env.Replace( 242 windows_env.Replace(
242 BUILD_TYPE = 'debug-windows', 243 BUILD_TYPE = 'debug-windows',
243 BUILD_TYPE_DESCRIPTION = 'Windows debug build', 244 BUILD_TYPE_DESCRIPTION = 'Windows debug build',
244 ) 245 )
245 windows_env.Append(BUILD_GROUPS = ['default']) 246 windows_env.Append(BUILD_GROUPS = ['default'])
246 247
247 # TODO(bradnelson): this is needed for now because target_platform_windows 248 # TODO(bradnelson): this is needed for now because target_platform_windows
248 # has OS_WINDOWS defined in a weird way. 249 # has OS_WINDOWS defined in a weird way.
249 windows_env.FilterOut(CPPDEFINES = ['OS_WINDOWS=OS_WINDOWS']) 250 windows_env.FilterOut(CPPDEFINES = ['OS_WINDOWS=OS_WINDOWS'])
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 # Invoke all the SConscripts in each of the environments that make sense on 648 # Invoke all the SConscripts in each of the environments that make sense on
648 # this host-platform. 649 # this host-platform.
649 BuildComponents(environment_list) 650 BuildComponents(environment_list)
650 651
651 # ------------------------------------------------------------------------- 652 # -------------------------------------------------------------------------
652 653
653 # This must occur after BuildComponents so that the dependency graph 654 # This must occur after BuildComponents so that the dependency graph
654 # will be populated. 655 # will be populated.
655 if root_env.Bit('solution'): 656 if root_env.Bit('solution'):
656 solution_env = root_env.Clone(tools = ['visual_studio_solution']) 657 solution_env = root_env.Clone(tools = ['visual_studio_solution'])
657 solution = solution_env.Solution( 658 src_solution = solution_env.Solution(
658 '$MAIN_DIR/chrome_scons', [windows_env], 659 '$MAIN_DIR/chrome_scons_src', [windows_env],
659 exclude_pattern = '.*(Program Files|platformsdk_vista_6_0|cygwin).*', 660 exclude_pattern = '.*(Program Files|platformsdk_vista_6_0|cygwin).*',
660 ) 661 )
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
661 Default(None) # Delete all other default targets. 676 Default(None) # Delete all other default targets.
662 Default(solution) # Build just the solution. 677 Default([src_solution, solution]) # Build just the solution.
663 678
664 # ------------------------------------------------------------------------- 679 # -------------------------------------------------------------------------
OLDNEW
« no previous file with comments | « no previous file | site_scons/site_tools/component_targets_msvs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698