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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 if set(modes) - set(['msvs', 'xcode']): | 739 if set(modes) - set(['msvs', 'xcode']): |
740 # There's at least one mode being built besides the platform- | 740 # There's at least one mode being built besides the platform- |
741 # independent 'msvs' or 'xcode' modes. Build the current | 741 # independent 'msvs' or 'xcode' modes. Build the current |
742 # build_component's Alias as default--that is, "base" when we're | 742 # build_component's Alias as default--that is, "base" when we're |
743 # in the base/ subdirectory, "chrome" under chrome/, etc. | 743 # in the base/ subdirectory, "chrome" under chrome/, etc. |
744 Import('build_component') | 744 Import('build_component') |
745 Default(Alias(build_component)) # Set default target based on where built. | 745 Default(Alias(build_component)) # Set default target based on where built. |
746 | 746 |
747 if 'msvs' in modes: | 747 if 'msvs' in modes: |
748 # We're in --mode=msvs, so add its Alias(es) to the default targets. | 748 # We're in --mode=msvs, so add its Alias(es) to the default targets. |
749 Default(Alias('solutions')) | 749 Default(Alias('msvs')) |
750 | 750 |
751 # ------------------------------------------------------------------------- | 751 # ------------------------------------------------------------------------- |
752 | 752 |
753 # This must occur after BuildComponents so that the dependency graph | 753 # This must occur after BuildComponents so that the dependency graph |
754 # will be populated. | 754 # will be populated. |
755 vs_env = windows_env.Clone() | 755 vs_env = windows_env.Clone() |
756 vs_env.Append(COMPONENT_VS_SOURCE_SUFFIXES = [ | 756 vs_env.Append(COMPONENT_VS_SOURCE_SUFFIXES = [ |
757 '.def', | 757 '.def', |
758 '.ini', | 758 '.ini', |
759 '.txt', | 759 '.txt', |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 'all_libraries', | 802 'all_libraries', |
803 'all_languages', | 803 'all_languages', |
804 'all_programs', | 804 'all_programs', |
805 'all_test_programs', | 805 'all_test_programs', |
806 ], projects = [p], | 806 ], projects = [p], |
807 COMPONENT_VS_PROJECT_SCRIPT_PATH=( | 807 COMPONENT_VS_PROJECT_SCRIPT_PATH=( |
808 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), | 808 'cd $$(ProjectDir)/$VS_PROJECT_TO_MAIN_DIR && hammer.bat'), |
809 ) | 809 ) |
810 | 810 |
811 # ------------------------------------------------------------------------- | 811 # ------------------------------------------------------------------------- |
OLD | NEW |