| 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 """Code to validate and convert settings of the Microsoft build tools. | 5 """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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 _Same(_lib, 'AdditionalOptions', _string_list) | 978 _Same(_lib, 'AdditionalOptions', _string_list) |
| 979 _Same(_lib, 'ExportNamedFunctions', _string_list) # /EXPORT | 979 _Same(_lib, 'ExportNamedFunctions', _string_list) # /EXPORT |
| 980 _Same(_lib, 'ForceSymbolReferences', _string) # /INCLUDE | 980 _Same(_lib, 'ForceSymbolReferences', _string) # /INCLUDE |
| 981 _Same(_lib, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB | 981 _Same(_lib, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB |
| 982 _Same(_lib, 'IgnoreSpecificDefaultLibraries', _file_list) # /NODEFAULTLIB | 982 _Same(_lib, 'IgnoreSpecificDefaultLibraries', _file_list) # /NODEFAULTLIB |
| 983 _Same(_lib, 'ModuleDefinitionFile', _file_name) # /DEF | 983 _Same(_lib, 'ModuleDefinitionFile', _file_name) # /DEF |
| 984 _Same(_lib, 'OutputFile', _file_name) # /OUT | 984 _Same(_lib, 'OutputFile', _file_name) # /OUT |
| 985 _Same(_lib, 'SuppressStartupBanner', _boolean) # /NOLOGO | 985 _Same(_lib, 'SuppressStartupBanner', _boolean) # /NOLOGO |
| 986 _Same(_lib, 'UseUnicodeResponseFiles', _boolean) | 986 _Same(_lib, 'UseUnicodeResponseFiles', _boolean) |
| 987 _Same(_lib, 'LinkTimeCodeGeneration', _boolean) # /LTCG | 987 _Same(_lib, 'LinkTimeCodeGeneration', _boolean) # /LTCG |
| 988 _Same(_lib, 'TargetMachine', _target_machine_enumeration) |
| 988 | 989 |
| 989 # TODO(jeanluc) _link defines the same value that gets moved to | 990 # TODO(jeanluc) _link defines the same value that gets moved to |
| 990 # ProjectReference. We may want to validate that they are consistent. | 991 # ProjectReference. We may want to validate that they are consistent. |
| 991 _Moved(_lib, 'LinkLibraryDependencies', 'ProjectReference', _boolean) | 992 _Moved(_lib, 'LinkLibraryDependencies', 'ProjectReference', _boolean) |
| 992 | 993 |
| 993 # TODO(jeanluc) I don't think these are genuine settings but byproducts of Gyp. | 994 # TODO(jeanluc) I don't think these are genuine settings but byproducts of Gyp. |
| 994 _MSVSOnly(_lib, 'AdditionalLibraryDirectories_excluded', _folder_list) | 995 _MSVSOnly(_lib, 'AdditionalLibraryDirectories_excluded', _folder_list) |
| 995 | 996 |
| 996 _MSBuildOnly(_lib, 'DisplayLibrary', _string) # /LIST Visible='false' | 997 _MSBuildOnly(_lib, 'DisplayLibrary', _string) # /LIST Visible='false' |
| 997 _MSBuildOnly(_lib, 'ErrorReporting', | 998 _MSBuildOnly(_lib, 'ErrorReporting', |
| 998 _Enumeration([], new=['PromptImmediately', # /ERRORREPORT:PROMPT | 999 _Enumeration([], new=['PromptImmediately', # /ERRORREPORT:PROMPT |
| 999 'QueueForNextLogin', # /ERRORREPORT:QUEUE | 1000 'QueueForNextLogin', # /ERRORREPORT:QUEUE |
| 1000 'SendErrorReport', # /ERRORREPORT:SEND | 1001 'SendErrorReport', # /ERRORREPORT:SEND |
| 1001 'NoErrorReport'])) # /ERRORREPORT:NONE | 1002 'NoErrorReport'])) # /ERRORREPORT:NONE |
| 1002 _MSBuildOnly(_lib, 'MinimumRequiredVersion', _string) | 1003 _MSBuildOnly(_lib, 'MinimumRequiredVersion', _string) |
| 1003 _MSBuildOnly(_lib, 'Name', _file_name) # /NAME | 1004 _MSBuildOnly(_lib, 'Name', _file_name) # /NAME |
| 1004 _MSBuildOnly(_lib, 'RemoveObjects', _file_list) # /REMOVE | 1005 _MSBuildOnly(_lib, 'RemoveObjects', _file_list) # /REMOVE |
| 1005 _MSBuildOnly(_lib, 'SubSystem', _subsystem_enumeration) | 1006 _MSBuildOnly(_lib, 'SubSystem', _subsystem_enumeration) |
| 1006 _MSBuildOnly(_lib, 'TargetMachine', _target_machine_enumeration) | |
| 1007 _MSBuildOnly(_lib, 'TrackerLogDirectory', _folder_name) | 1007 _MSBuildOnly(_lib, 'TrackerLogDirectory', _folder_name) |
| 1008 _MSBuildOnly(_lib, 'TreatLibWarningAsErrors', _boolean) # /WX | 1008 _MSBuildOnly(_lib, 'TreatLibWarningAsErrors', _boolean) # /WX |
| 1009 _MSBuildOnly(_lib, 'Verbose', _boolean) | 1009 _MSBuildOnly(_lib, 'Verbose', _boolean) |
| 1010 | 1010 |
| 1011 | 1011 |
| 1012 # Directives for converting VCManifestTool to Mt. | 1012 # Directives for converting VCManifestTool to Mt. |
| 1013 # See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\mt.xml" for | 1013 # See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\mt.xml" for |
| 1014 # the schema of the MSBuild Lib settings. | 1014 # the schema of the MSBuild Lib settings. |
| 1015 | 1015 |
| 1016 # Options that have the same name in MSVS and MSBuild | 1016 # Options that have the same name in MSVS and MSBuild |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1042 _MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean) | 1042 _MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean) |
| 1043 | 1043 |
| 1044 # MSBuild options not found in MSVS. | 1044 # MSBuild options not found in MSVS. |
| 1045 _MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean) | 1045 _MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean) |
| 1046 _MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category | 1046 _MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category |
| 1047 _MSBuildOnly(_manifest, 'ManifestFromManagedAssembly', | 1047 _MSBuildOnly(_manifest, 'ManifestFromManagedAssembly', |
| 1048 _file_name) # /managedassemblyname | 1048 _file_name) # /managedassemblyname |
| 1049 _MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource | 1049 _MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource |
| 1050 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency | 1050 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency |
| 1051 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) | 1051 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) |
| OLD | NEW |