Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 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': [ |
| 18 | { |
| 19 | 'target_name': 'test_safeseh_default', |
| 20 | 'type': 'executable', |
| 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 | }, |
| 28 | }, |
| 29 | 'sources': [ |
| 30 | 'safeseh_hello.cc', |
| 31 | 'safeseh_zero.asm', |
| 32 | ], |
| 33 | }, |
| 34 | { |
| 35 | 'target_name': 'test_safeseh_no', |
| 36 | 'type': 'executable', |
| 37 | 'msvs_settings': { |
| 38 | 'VCLinkerTool': { |
| 39 | 'ImageHasSafeExceptionHandlers': 'false', |
| 40 | }, |
| 41 | }, |
| 42 | 'sources': [ |
| 43 | 'safeseh_hello.cc', |
| 44 | 'safeseh_zero.asm', |
| 45 | ], |
| 46 | }, |
| 47 | { |
| 48 | 'target_name': 'test_safeseh_yes', |
| 49 | 'type': 'executable', |
| 50 | 'msvs_settings': { |
| 51 | 'VCLinkerTool': { |
| 52 | 'ImageHasSafeExceptionHandlers': 'true', |
| 53 | }, |
| 54 | 'MASM': { |
| 55 | 'UseSafeExceptionHandlers': 'true', |
| 56 | }, |
| 57 | }, |
| 58 | 'sources': [ |
| 59 | 'safeseh_hello.cc', |
| 60 | 'safeseh_zero.asm', |
| 61 | ], |
| 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 | }, |
| 78 | ] |
| 79 | } |