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 """ | 5 """ |
6 This module helps emulate Visual Studio 2008 behavior on top of other | 6 This module helps emulate Visual Studio 2008 behavior on top of other |
7 build systems, primarily ninja. | 7 build systems, primarily ninja. |
8 """ | 8 """ |
9 | 9 |
10 import os | 10 import os |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 cl('OmitFramePointers', map={'false': '-', 'true': ''}, prefix='/Oy') | 432 cl('OmitFramePointers', map={'false': '-', 'true': ''}, prefix='/Oy') |
433 cl('EnableIntrinsicFunctions', map={'false': '-', 'true': ''}, prefix='/Oi') | 433 cl('EnableIntrinsicFunctions', map={'false': '-', 'true': ''}, prefix='/Oi') |
434 cl('FavorSizeOrSpeed', map={'1': 't', '2': 's'}, prefix='/O') | 434 cl('FavorSizeOrSpeed', map={'1': 't', '2': 's'}, prefix='/O') |
435 cl('FloatingPointModel', | 435 cl('FloatingPointModel', |
436 map={'0': 'precise', '1': 'strict', '2': 'fast'}, prefix='/fp:', | 436 map={'0': 'precise', '1': 'strict', '2': 'fast'}, prefix='/fp:', |
437 default='0') | 437 default='0') |
438 cl('WholeProgramOptimization', map={'true': '/GL'}) | 438 cl('WholeProgramOptimization', map={'true': '/GL'}) |
439 cl('WarningLevel', prefix='/W') | 439 cl('WarningLevel', prefix='/W') |
440 cl('WarnAsError', map={'true': '/WX'}) | 440 cl('WarnAsError', map={'true': '/WX'}) |
441 cl('CallingConvention', | 441 cl('CallingConvention', |
442 map={'0': 'd', '1': 'r', '2': 'z'}, prefix='/G') | 442 map={'0': 'd', '1': 'r', '2': 'z', '3': 'v'}, prefix='/G') |
443 cl('DebugInformationFormat', | 443 cl('DebugInformationFormat', |
444 map={'1': '7', '3': 'i', '4': 'I'}, prefix='/Z') | 444 map={'1': '7', '3': 'i', '4': 'I'}, prefix='/Z') |
445 cl('RuntimeTypeInfo', map={'true': '/GR', 'false': '/GR-'}) | 445 cl('RuntimeTypeInfo', map={'true': '/GR', 'false': '/GR-'}) |
446 cl('EnableFunctionLevelLinking', map={'true': '/Gy', 'false': '/Gy-'}) | 446 cl('EnableFunctionLevelLinking', map={'true': '/Gy', 'false': '/Gy-'}) |
447 cl('MinimalRebuild', map={'true': '/Gm'}) | 447 cl('MinimalRebuild', map={'true': '/Gm'}) |
448 cl('BufferSecurityCheck', map={'true': '/GS', 'false': '/GS-'}) | 448 cl('BufferSecurityCheck', map={'true': '/GS', 'false': '/GS-'}) |
449 cl('BasicRuntimeChecks', map={'1': 's', '2': 'u', '3': '1'}, prefix='/RTC') | 449 cl('BasicRuntimeChecks', map={'1': 's', '2': 'u', '3': '1'}, prefix='/RTC') |
450 cl('RuntimeLibrary', | 450 cl('RuntimeLibrary', |
451 map={'0': 'T', '1': 'Td', '2': 'D', '3': 'Dd'}, prefix='/M') | 451 map={'0': 'T', '1': 'Td', '2': 'D', '3': 'Dd'}, prefix='/M') |
452 cl('ExceptionHandling', map={'1': 'sc','2': 'a'}, prefix='/EH') | 452 cl('ExceptionHandling', map={'1': 'sc','2': 'a'}, prefix='/EH') |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 | 1053 |
1054 # To determine processor word size on Windows, in addition to checking | 1054 # To determine processor word size on Windows, in addition to checking |
1055 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current | 1055 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current |
1056 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which | 1056 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which |
1057 # contains the actual word size of the system when running thru WOW64). | 1057 # contains the actual word size of the system when running thru WOW64). |
1058 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or | 1058 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or |
1059 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')): | 1059 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')): |
1060 default_variables['MSVS_OS_BITS'] = 64 | 1060 default_variables['MSVS_OS_BITS'] = 64 |
1061 else: | 1061 else: |
1062 default_variables['MSVS_OS_BITS'] = 32 | 1062 default_variables['MSVS_OS_BITS'] = 32 |
OLD | NEW |