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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 _Enumeration(['', # Disabled | 612 _Enumeration(['', # Disabled |
613 'OldStyle', # /Z7 | 613 'OldStyle', # /Z7 |
614 None, | 614 None, |
615 'ProgramDatabase', # /Zi | 615 'ProgramDatabase', # /Zi |
616 'EditAndContinue'])) # /ZI | 616 'EditAndContinue'])) # /ZI |
617 _Same(_compile, 'EnableEnhancedInstructionSet', | 617 _Same(_compile, 'EnableEnhancedInstructionSet', |
618 _Enumeration(['NotSet', | 618 _Enumeration(['NotSet', |
619 'StreamingSIMDExtensions', # /arch:SSE | 619 'StreamingSIMDExtensions', # /arch:SSE |
620 'StreamingSIMDExtensions2', # /arch:SSE2 | 620 'StreamingSIMDExtensions2', # /arch:SSE2 |
621 'AdvancedVectorExtensions', # /arch:AVX (vs2012+) | 621 'AdvancedVectorExtensions', # /arch:AVX (vs2012+) |
622 'NoExtensions',])) # /arch:IA32 (vs2012+) | 622 'NoExtensions', # /arch:IA32 (vs2012+) |
| 623 # This one only exists in the new msbuild format. |
| 624 'AdvancedVectorExtensions2', # /arch:AVX2 (vs2013r2+) |
| 625 ])) |
623 _Same(_compile, 'ErrorReporting', | 626 _Same(_compile, 'ErrorReporting', |
624 _Enumeration(['None', # /errorReport:none | 627 _Enumeration(['None', # /errorReport:none |
625 'Prompt', # /errorReport:prompt | 628 'Prompt', # /errorReport:prompt |
626 'Queue'], # /errorReport:queue | 629 'Queue'], # /errorReport:queue |
627 new=['Send'])) # /errorReport:send" | 630 new=['Send'])) # /errorReport:send" |
628 _Same(_compile, 'ExceptionHandling', | 631 _Same(_compile, 'ExceptionHandling', |
629 _Enumeration(['false', | 632 _Enumeration(['false', |
630 'Sync', # /EHsc | 633 'Sync', # /EHsc |
631 'Async'], # /EHa | 634 'Async'], # /EHa |
632 new=['SyncCThrow'])) # /EHs | 635 new=['SyncCThrow'])) # /EHs |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 _MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean) | 1073 _MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean) |
1071 | 1074 |
1072 # MSBuild options not found in MSVS. | 1075 # MSBuild options not found in MSVS. |
1073 _MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean) | 1076 _MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean) |
1074 _MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category | 1077 _MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category |
1075 _MSBuildOnly(_manifest, 'ManifestFromManagedAssembly', | 1078 _MSBuildOnly(_manifest, 'ManifestFromManagedAssembly', |
1076 _file_name) # /managedassemblyname | 1079 _file_name) # /managedassemblyname |
1077 _MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource | 1080 _MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource |
1078 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency | 1081 _MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency |
1079 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) | 1082 _MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name) |
OLD | NEW |