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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 new=['LinkVerboseICF', # /VERBOSE:ICF | 805 new=['LinkVerboseICF', # /VERBOSE:ICF |
806 'LinkVerboseREF', # /VERBOSE:REF | 806 'LinkVerboseREF', # /VERBOSE:REF |
807 'LinkVerboseSAFESEH', # /VERBOSE:SAFESEH | 807 'LinkVerboseSAFESEH', # /VERBOSE:SAFESEH |
808 'LinkVerboseCLR'])) # /VERBOSE:CLR | 808 'LinkVerboseCLR'])) # /VERBOSE:CLR |
809 _Same(_link, 'SubSystem', _subsystem_enumeration) | 809 _Same(_link, 'SubSystem', _subsystem_enumeration) |
810 _Same(_link, 'TargetMachine', _target_machine_enumeration) | 810 _Same(_link, 'TargetMachine', _target_machine_enumeration) |
811 _Same(_link, 'UACExecutionLevel', | 811 _Same(_link, 'UACExecutionLevel', |
812 _Enumeration(['AsInvoker', # /level='asInvoker' | 812 _Enumeration(['AsInvoker', # /level='asInvoker' |
813 'HighestAvailable', # /level='highestAvailable' | 813 'HighestAvailable', # /level='highestAvailable' |
814 'RequireAdministrator'])) # /level='requireAdministrator' | 814 'RequireAdministrator'])) # /level='requireAdministrator' |
| 815 _Same(_link, 'MinimumRequiredVersion', _string) |
815 | 816 |
816 | 817 |
817 # Options found in MSVS that have been renamed in MSBuild. | 818 # Options found in MSVS that have been renamed in MSBuild. |
818 _Renamed(_link, 'ErrorReporting', 'LinkErrorReporting', | 819 _Renamed(_link, 'ErrorReporting', 'LinkErrorReporting', |
819 _Enumeration(['NoErrorReport', # /ERRORREPORT:NONE | 820 _Enumeration(['NoErrorReport', # /ERRORREPORT:NONE |
820 'PromptImmediately', # /ERRORREPORT:PROMPT | 821 'PromptImmediately', # /ERRORREPORT:PROMPT |
821 'QueueForNextLogin'], # /ERRORREPORT:QUEUE | 822 'QueueForNextLogin'], # /ERRORREPORT:QUEUE |
822 new=['SendErrorReport'])) # /ERRORREPORT:SEND | 823 new=['SendErrorReport'])) # /ERRORREPORT:SEND |
823 _Renamed(_link, 'IgnoreDefaultLibraryNames', 'IgnoreSpecificDefaultLibraries', | 824 _Renamed(_link, 'IgnoreDefaultLibraryNames', 'IgnoreSpecificDefaultLibraries', |
824 _file_list) # /NODEFAULTLIB | 825 _file_list) # /NODEFAULTLIB |
(...skipping 19 matching lines...) Expand all Loading... |
844 | 845 |
845 # MSBuild options not found in MSVS. | 846 # MSBuild options not found in MSVS. |
846 _MSBuildOnly(_link, 'BuildingInIDE', _boolean) | 847 _MSBuildOnly(_link, 'BuildingInIDE', _boolean) |
847 _MSBuildOnly(_link, 'ImageHasSafeExceptionHandlers', _boolean) # /SAFESEH | 848 _MSBuildOnly(_link, 'ImageHasSafeExceptionHandlers', _boolean) # /SAFESEH |
848 _MSBuildOnly(_link, 'LinkDLL', _boolean) # /DLL Visible='false' | 849 _MSBuildOnly(_link, 'LinkDLL', _boolean) # /DLL Visible='false' |
849 _MSBuildOnly(_link, 'LinkStatus', _boolean) # /LTCG:STATUS | 850 _MSBuildOnly(_link, 'LinkStatus', _boolean) # /LTCG:STATUS |
850 _MSBuildOnly(_link, 'PreventDllBinding', _boolean) # /ALLOWBIND | 851 _MSBuildOnly(_link, 'PreventDllBinding', _boolean) # /ALLOWBIND |
851 _MSBuildOnly(_link, 'SupportNobindOfDelayLoadedDLL', _boolean) # /DELAY:NOBIND | 852 _MSBuildOnly(_link, 'SupportNobindOfDelayLoadedDLL', _boolean) # /DELAY:NOBIND |
852 _MSBuildOnly(_link, 'TrackerLogDirectory', _folder_name) | 853 _MSBuildOnly(_link, 'TrackerLogDirectory', _folder_name) |
853 _MSBuildOnly(_link, 'TreatLinkerWarningAsErrors', _boolean) # /WX | 854 _MSBuildOnly(_link, 'TreatLinkerWarningAsErrors', _boolean) # /WX |
854 _MSBuildOnly(_link, 'MinimumRequiredVersion', _string) | |
855 _MSBuildOnly(_link, 'MSDOSStubFileName', _file_name) # /STUB Visible='false' | 855 _MSBuildOnly(_link, 'MSDOSStubFileName', _file_name) # /STUB Visible='false' |
856 _MSBuildOnly(_link, 'SectionAlignment', _integer) # /ALIGN | 856 _MSBuildOnly(_link, 'SectionAlignment', _integer) # /ALIGN |
857 _MSBuildOnly(_link, 'SpecifySectionAttributes', _string) # /SECTION | 857 _MSBuildOnly(_link, 'SpecifySectionAttributes', _string) # /SECTION |
858 _MSBuildOnly(_link, 'ForceFileOutput', | 858 _MSBuildOnly(_link, 'ForceFileOutput', |
859 _Enumeration([], new=['Enabled', # /FORCE | 859 _Enumeration([], new=['Enabled', # /FORCE |
860 # /FORCE:MULTIPLE | 860 # /FORCE:MULTIPLE |
861 'MultiplyDefinedSymbolOnly', | 861 'MultiplyDefinedSymbolOnly', |
862 'UndefinedSymbolOnly'])) # /FORCE:UNRESOLVED | 862 'UndefinedSymbolOnly'])) # /FORCE:UNRESOLVED |
863 _MSBuildOnly(_link, 'CreateHotPatchableImage', | 863 _MSBuildOnly(_link, 'CreateHotPatchableImage', |
864 _Enumeration([], new=['Enabled', # /FUNCTIONPADMIN | 864 _Enumeration([], new=['Enabled', # /FUNCTIONPADMIN |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |