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 if sys.platform == 'win32': | 10 if sys.platform == 'win32': |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 # Add the final list into the root environment to be build in BuildComponents. | 225 # Add the final list into the root environment to be build in BuildComponents. |
226 root_env.Append(BUILD_SCONSCRIPTS = sconscripts) | 226 root_env.Append(BUILD_SCONSCRIPTS = sconscripts) |
227 | 227 |
228 | 228 |
229 | 229 |
230 # -------------------------------------------------------------------------- | 230 # -------------------------------------------------------------------------- |
231 # Windows specific | 231 # Windows specific |
232 | 232 |
233 windows_env = root_env.Clone() | 233 windows_env = root_env.Clone() |
234 | 234 |
235 # TODO(siggi) Remove this line once SCons plays well when the | |
236 # Platform SDK 6.1 is installed with VS2005 but not VS2008. | |
237 windows_env['MSVS_VERSION'] = '8.0' | |
238 | |
239 windows_env.Tool('target_platform_windows') | 235 windows_env.Tool('target_platform_windows') |
240 windows_env.Tool('component_targets_msvs') # Per target project support. | 236 windows_env.Tool('component_targets_msvs') # Per target project support. |
241 | 237 |
242 # Hammer's target_platform_windows module added the stock SCons | 238 # Hammer's target_platform_windows module added the stock SCons |
243 # MSVSProject() and MSVSSolution() Builders, which we're going to | 239 # MSVSProject() and MSVSSolution() Builders, which we're going to |
244 # replace with our newer, more flexible implementation. Wipe out the | 240 # replace with our newer, more flexible implementation. Wipe out the |
245 # older ones so they don't interfere with our initialization and so | 241 # older ones so they don't interfere with our initialization and so |
246 # SCons doesn't propagate them to cloned construction environments. | 242 # SCons doesn't propagate them to cloned construction environments. |
247 del windows_env['BUILDERS']['MSVSProject'] | 243 del windows_env['BUILDERS']['MSVSProject'] |
248 del windows_env['BUILDERS']['MSVSSolution'] | 244 del windows_env['BUILDERS']['MSVSSolution'] |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 'all_libraries', | 823 'all_libraries', |
828 'all_languages', | 824 'all_languages', |
829 'all_programs', | 825 'all_programs', |
830 'all_test_programs', | 826 'all_test_programs', |
831 ], projects = [p], | 827 ], projects = [p], |
832 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 828 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
833 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 829 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
834 ) | 830 ) |
835 | 831 |
836 # ------------------------------------------------------------------------- | 832 # ------------------------------------------------------------------------- |
OLD | NEW |