OLD | NEW |
1 # Copyright (c) 2009 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 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 'target_defaults': { | 6 'target_defaults': { |
| 7 'variables': { |
| 8 'test_defines%': 0 |
| 9 }, |
| 10 'conditions': [ |
| 11 ['test_defines == 1', { |
| 12 'defines': [ |
| 13 'MEANING_OF_LIFE' |
| 14 ], |
| 15 }], |
| 16 ], |
7 'configurations': { | 17 'configurations': { |
8 'Debug': { | 18 'Default': { |
9 'msvs_configuration_platform': 'Win32', | |
10 }, | 19 }, |
11 'Debug_x64': { | 20 'Default_x64': { |
12 'inherit_from': ['Debug'], | |
13 'msvs_configuration_platform': 'x64', | 21 'msvs_configuration_platform': 'x64', |
14 }, | 22 }, |
15 }, | 23 }, |
16 }, | 24 }, |
17 'targets': [ | 25 'targets': [ |
18 { | 26 { |
19 'target_name': 'configurations', | 27 'target_name': 'hello_x86', |
20 'type': 'executable', | 28 'type': 'executable', |
21 'sources': [ | 29 'sources': [ |
22 'configurations.c', | 30 'hello.cc', |
| 31 'dummyfunc-x86.asm', |
23 ], | 32 ], |
24 }, | 33 }, |
25 { | 34 { |
26 'target_name': 'configurations64', | 35 'target_name': 'hello_x64', |
27 'type': 'executable', | 36 'type': 'executable', |
28 'sources': [ | 37 'sources': [ |
29 'configurations.c', | 38 'hello.cc', |
| 39 'dummyfunc-x64.asm', |
30 ], | 40 ], |
31 'configurations': { | 41 'configurations': { |
32 'Debug': { | 42 'Default': { |
33 'msvs_target_platform': 'x64', | 43 'msvs_target_platform': 'x64', |
34 }, | 44 }, |
35 }, | 45 }, |
36 }, | 46 }, |
37 ], | 47 ] |
38 } | 48 } |
OLD | NEW |