| OLD | NEW |
| 1 # Copyright (c) 2014 Google Inc. All rights reserved. | 1 # Copyright (c) 2014 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 'targets': [ | 6 'target_defaults': { |
| 7 'configurations': { |
| 8 'Default': { |
| 9 'msvs_configuration_platform': 'Win32', |
| 10 }, |
| 11 'Default_x64': { |
| 12 'inherit_from': ['Default'], |
| 13 'msvs_configuration_platform': 'x64', |
| 14 }, |
| 15 }, |
| 16 }, |
| 17 'targets': [ |
| 7 { | 18 { |
| 8 'target_name': 'test_safeseh_default', | 19 'target_name': 'test_safeseh_default', |
| 9 'type': 'executable', | 20 'type': 'executable', |
| 10 'msvs_settings': { | 21 'msvs_settings': { |
| 22 # By default, msvs passes /SAFESEH for Link, but not for MASM. In |
| 23 # order for test_safeseh_default to link successfully, we need to |
| 24 # explicitly specify /SAFESEH for MASM. |
| 25 'MASM': { |
| 26 'UseSafeExceptionHandlers': 'true', |
| 27 }, |
| 11 }, | 28 }, |
| 12 'sources': [ | 29 'sources': [ |
| 13 'safeseh_hello.cc', | 30 'safeseh_hello.cc', |
| 14 'safeseh_zero.asm', | 31 'safeseh_zero.asm', |
| 15 ], | 32 ], |
| 16 }, | 33 }, |
| 17 { | 34 { |
| 18 'target_name': 'test_safeseh_no', | 35 'target_name': 'test_safeseh_no', |
| 19 'type': 'executable', | 36 'type': 'executable', |
| 20 'msvs_settings': { | 37 'msvs_settings': { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 }, | 53 }, |
| 37 'MASM': { | 54 'MASM': { |
| 38 'UseSafeExceptionHandlers': 'true', | 55 'UseSafeExceptionHandlers': 'true', |
| 39 }, | 56 }, |
| 40 }, | 57 }, |
| 41 'sources': [ | 58 'sources': [ |
| 42 'safeseh_hello.cc', | 59 'safeseh_hello.cc', |
| 43 'safeseh_zero.asm', | 60 'safeseh_zero.asm', |
| 44 ], | 61 ], |
| 45 }, | 62 }, |
| 63 { |
| 64 # x64 targets cannot have ImageHasSafeExceptionHandlers or |
| 65 # UseSafeExceptionHandlers set. |
| 66 'target_name': 'test_safeseh_x64', |
| 67 'type': 'executable', |
| 68 'configurations': { |
| 69 'Default': { |
| 70 'msvs_target_platform': 'x64', |
| 71 }, |
| 72 }, |
| 73 'sources': [ |
| 74 'safeseh_hello.cc', |
| 75 'safeseh_zero64.asm', |
| 76 ], |
| 77 }, |
| 46 ] | 78 ] |
| 47 } | 79 } |
| OLD | NEW |