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 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'test_cdecl', |
| 9 | 'type': 'loadable_module', |
| 10 | 'msvs_settings': { |
| 11 | 'VCCLCompilerTool': { |
| 12 | 'CallingConvention': 0, |
| 13 | }, |
| 14 | }, |
| 15 | 'sources': [ |
| 16 | 'calling-convention.cc', |
| 17 | 'calling-convention-cdecl.def', |
| 18 | ], |
| 19 | }, |
| 20 | { |
| 21 | 'target_name': 'test_fastcall', |
| 22 | 'type': 'loadable_module', |
| 23 | 'msvs_settings': { |
| 24 | 'VCCLCompilerTool': { |
| 25 | 'CallingConvention': 1, |
| 26 | }, |
| 27 | }, |
| 28 | 'sources': [ |
| 29 | 'calling-convention.cc', |
| 30 | 'calling-convention-fastcall.def', |
| 31 | ], |
| 32 | }, |
| 33 | { |
| 34 | 'target_name': 'test_stdcall', |
| 35 | 'type': 'loadable_module', |
| 36 | 'msvs_settings': { |
| 37 | 'VCCLCompilerTool': { |
| 38 | 'CallingConvention': 2, |
| 39 | }, |
| 40 | }, |
| 41 | 'sources': [ |
| 42 | 'calling-convention.cc', |
| 43 | 'calling-convention-stdcall.def', |
| 44 | ], |
| 45 | }, |
| 46 | ], |
| 47 | 'conditions': [ |
| 48 | ['MSVS_VERSION[0:4]>="2013"', { |
| 49 | 'targets': [ |
| 50 | { |
| 51 | 'target_name': 'test_vectorcall', |
| 52 | 'type': 'loadable_module', |
| 53 | 'msvs_settings': { |
| 54 | 'VCCLCompilerTool': { |
| 55 | 'CallingConvention': 3, |
| 56 | }, |
| 57 | }, |
| 58 | 'sources': [ |
| 59 | 'calling-convention.cc', |
| 60 | 'calling-convention-vectorcall.def', |
| 61 | ], |
| 62 | }, |
| 63 | ], |
| 64 | }], |
| 65 | ], |
| 66 | } |