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 r"""Code to validate and convert settings of the Microsoft build tools. | 5 r"""Code to validate and convert settings of the Microsoft build tools. |
6 | 6 |
7 This file contains code to validate and convert settings of the Microsoft | 7 This file contains code to validate and convert settings of the Microsoft |
8 build tools. The function ConvertToMSBuildSettings(), ValidateMSVSSettings(), | 8 build tools. The function ConvertToMSBuildSettings(), ValidateMSVSSettings(), |
9 and ValidateMSBuildSettings() are the entry points. | 9 and ValidateMSBuildSettings() are the entry points. |
10 | 10 |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 _ConvertedToAdditionalOption(_compile, 'DefaultCharIsUnsigned', '/J') | 701 _ConvertedToAdditionalOption(_compile, 'DefaultCharIsUnsigned', '/J') |
702 | 702 |
703 # MSVS options not found in MSBuild. | 703 # MSVS options not found in MSBuild. |
704 _MSVSOnly(_compile, 'Detect64BitPortabilityProblems', _boolean) | 704 _MSVSOnly(_compile, 'Detect64BitPortabilityProblems', _boolean) |
705 _MSVSOnly(_compile, 'UseUnicodeResponseFiles', _boolean) | 705 _MSVSOnly(_compile, 'UseUnicodeResponseFiles', _boolean) |
706 | 706 |
707 # MSBuild options not found in MSVS. | 707 # MSBuild options not found in MSVS. |
708 _MSBuildOnly(_compile, 'BuildingInIDE', _boolean) | 708 _MSBuildOnly(_compile, 'BuildingInIDE', _boolean) |
709 _MSBuildOnly(_compile, 'CompileAsManaged', | 709 _MSBuildOnly(_compile, 'CompileAsManaged', |
710 _Enumeration([], new=['false', | 710 _Enumeration([], new=['false', |
711 'true', # /clr | 711 'true'])) # /clr |
712 'Pure', # /clr:pure | |
713 'Safe', # /clr:safe | |
714 'OldSyntax'])) # /clr:oldSyntax | |
715 _MSBuildOnly(_compile, 'CreateHotpatchableImage', _boolean) # /hotpatch | 712 _MSBuildOnly(_compile, 'CreateHotpatchableImage', _boolean) # /hotpatch |
716 _MSBuildOnly(_compile, 'MultiProcessorCompilation', _boolean) # /MP | 713 _MSBuildOnly(_compile, 'MultiProcessorCompilation', _boolean) # /MP |
717 _MSBuildOnly(_compile, 'PreprocessOutputPath', _string) # /Fi | 714 _MSBuildOnly(_compile, 'PreprocessOutputPath', _string) # /Fi |
718 _MSBuildOnly(_compile, 'ProcessorNumber', _integer) # the number of processors | 715 _MSBuildOnly(_compile, 'ProcessorNumber', _integer) # the number of processors |
719 _MSBuildOnly(_compile, 'TrackerLogDirectory', _folder_name) | 716 _MSBuildOnly(_compile, 'TrackerLogDirectory', _folder_name) |
720 _MSBuildOnly(_compile, 'TreatSpecificWarningsAsErrors', _string_list) # /we | 717 _MSBuildOnly(_compile, 'TreatSpecificWarningsAsErrors', _string_list) # /we |
721 _MSBuildOnly(_compile, 'UseUnicodeForAssemblerListing', _boolean) # /FAu | 718 _MSBuildOnly(_compile, 'UseUnicodeForAssemblerListing', _boolean) # /FAu |
722 | 719 |
723 # Defines a setting that needs very customized processing | 720 # Defines a setting that needs very customized processing |
724 _CustomGeneratePreprocessedFile(_compile, 'GeneratePreprocessedFile') | 721 _CustomGeneratePreprocessedFile(_compile, 'GeneratePreprocessedFile') |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency | 1087 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency |
1091 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) | 1088 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) |
1092 | 1089 |
1093 | 1090 |
1094 # Directives for MASM. | 1091 # Directives for MASM. |
1095 # See "$(VCTargetsPath)\BuildCustomizations\masm.xml" for the schema of the | 1092 # See "$(VCTargetsPath)\BuildCustomizations\masm.xml" for the schema of the |
1096 # MSBuild MASM settings. | 1093 # MSBuild MASM settings. |
1097 | 1094 |
1098 # Options that have the same name in MSVS and MSBuild. | 1095 # Options that have the same name in MSVS and MSBuild. |
1099 _Same(_masm, 'UseSafeExceptionHandlers', _boolean) # /safeseh | 1096 _Same(_masm, 'UseSafeExceptionHandlers', _boolean) # /safeseh |
OLD | NEW |