 Chromium Code Reviews
 Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. 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 copy | 5 import copy | 
| 6 import ntpath | 6 import ntpath | 
| 7 import os | 7 import os | 
| 8 import posixpath | 8 import posixpath | 
| 9 import re | 9 import re | 
| 10 import subprocess | 10 import subprocess | 
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 'msvs_shard', | 80 'msvs_shard', | 
| 81 'msvs_external_builder', | 81 'msvs_external_builder', | 
| 82 'msvs_external_builder_out_dir', | 82 'msvs_external_builder_out_dir', | 
| 83 'msvs_external_builder_build_cmd', | 83 'msvs_external_builder_build_cmd', | 
| 84 'msvs_external_builder_clean_cmd', | 84 'msvs_external_builder_clean_cmd', | 
| 85 'msvs_external_builder_clcompile_cmd', | 85 'msvs_external_builder_clcompile_cmd', | 
| 86 'msvs_enable_winrt', | 86 'msvs_enable_winrt', | 
| 87 'msvs_requires_importlibrary', | 87 'msvs_requires_importlibrary', | 
| 88 'msvs_enable_winphone', | 88 'msvs_enable_winphone', | 
| 89 'msvs_application_type_revision', | 89 'msvs_application_type_revision', | 
| 90 'msvs_target_platform_version', | |
| 91 'msvs_target_platform_minversion', | |
| 90 ] | 92 ] | 
| 91 | 93 | 
| 92 | 94 | 
| 93 # List of precompiled header related keys. | 95 # List of precompiled header related keys. | 
| 94 precomp_keys = [ | 96 precomp_keys = [ | 
| 95 'msvs_precompiled_header', | 97 'msvs_precompiled_header', | 
| 96 'msvs_precompiled_source', | 98 'msvs_precompiled_source', | 
| 97 ] | 99 ] | 
| 98 | 100 | 
| 99 | 101 | 
| (...skipping 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2637 | 2639 | 
| 2638 if spec.get('msvs_enable_winrt'): | 2640 if spec.get('msvs_enable_winrt'): | 
| 2639 properties[0].append(['DefaultLanguage', 'en-US']) | 2641 properties[0].append(['DefaultLanguage', 'en-US']) | 
| 2640 properties[0].append(['AppContainerApplication', 'true']) | 2642 properties[0].append(['AppContainerApplication', 'true']) | 
| 2641 if spec.get('msvs_application_type_revision'): | 2643 if spec.get('msvs_application_type_revision'): | 
| 2642 app_type_revision = spec.get('msvs_application_type_revision') | 2644 app_type_revision = spec.get('msvs_application_type_revision') | 
| 2643 properties[0].append(['ApplicationTypeRevision', app_type_revision]) | 2645 properties[0].append(['ApplicationTypeRevision', app_type_revision]) | 
| 2644 else: | 2646 else: | 
| 2645 properties[0].append(['ApplicationTypeRevision', '8.1']) | 2647 properties[0].append(['ApplicationTypeRevision', '8.1']) | 
| 2646 | 2648 | 
| 2649 if spec.get('msvs_target_platform_version'): | |
| 2650 tar_plat_ver = spec.get('msvs_target_platform_version') | |
| 
scottmg
2015/08/12 04:12:20
I don't like "tar" and "plat", "ver" is ok if it h
 
coop
2015/08/12 16:47:21
YAY!  I am so glad you said this.  I originally ha
 | |
| 2651 properties[0].append(['WindowsTargetPlatformVersion', tar_plat_ver]) | |
| 2652 if spec.get('msvs_target_platform_minversion'): | |
| 2653 tar_plat_mver = spec.get('msvs_target_platform_minversion') | |
| 2654 properties[0].append(['WindowsTargetPlatformMinVersion', tar_plat_mver]) | |
| 2655 else: | |
| 2656 properties[0].append(['WindowsTargetPlatformMinVersion', tar_plat_ver]) | |
| 2647 if spec.get('msvs_enable_winphone'): | 2657 if spec.get('msvs_enable_winphone'): | 
| 2648 properties[0].append(['ApplicationType', 'Windows Phone']) | 2658 properties[0].append(['ApplicationType', 'Windows Phone']) | 
| 2649 else: | 2659 else: | 
| 2650 properties[0].append(['ApplicationType', 'Windows Store']) | 2660 properties[0].append(['ApplicationType', 'Windows Store']) | 
| 2651 | 2661 | 
| 2652 return properties | 2662 return properties | 
| 2653 | 2663 | 
| 2654 def _GetMSBuildConfigurationDetails(spec, build_file): | 2664 def _GetMSBuildConfigurationDetails(spec, build_file): | 
| 2655 properties = {} | 2665 properties = {} | 
| 2656 for name, settings in spec['configurations'].iteritems(): | 2666 for name, settings in spec['configurations'].iteritems(): | 
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3431 action_spec.extend( | 3441 action_spec.extend( | 
| 3432 # TODO(jeanluc) 'Document' for all or just if as_sources? | 3442 # TODO(jeanluc) 'Document' for all or just if as_sources? | 
| 3433 [['FileType', 'Document'], | 3443 [['FileType', 'Document'], | 
| 3434 ['Command', command], | 3444 ['Command', command], | 
| 3435 ['Message', description], | 3445 ['Message', description], | 
| 3436 ['Outputs', outputs] | 3446 ['Outputs', outputs] | 
| 3437 ]) | 3447 ]) | 
| 3438 if additional_inputs: | 3448 if additional_inputs: | 
| 3439 action_spec.append(['AdditionalInputs', additional_inputs]) | 3449 action_spec.append(['AdditionalInputs', additional_inputs]) | 
| 3440 actions_spec.append(action_spec) | 3450 actions_spec.append(action_spec) | 
| OLD | NEW |