OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2014 The Chromium Authors. 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 'variables': { | |
7 'test_var%': 0, | |
8 }, | |
9 'targets': [ | |
10 { | |
11 'target_name': 'program', | |
12 'type': 'executable', | |
13 'sources': [ | |
14 'program.cc', | |
15 ], | |
16 'conditions': [ | |
17 ['test_var==0', { | |
18 'defines': ['FOO="first_if"'], | |
19 }, 'test_var==1', { | |
scottmg
2014/11/14 17:09:44
I applaud the effort to make elseifs better, but w
Shezan Baig (Bloomberg)
2014/11/14 17:25:44
This is true. In our code, we've been using this
| |
20 'defines': ['FOO="first_else_if"'], | |
21 }, 'test_var==2', { | |
22 'defines': ['FOO="second_else_if"'], | |
23 }, 'test_var==3', { | |
24 'defines': ['FOO="third_else_if"'], | |
25 }, { | |
26 'defines': ['FOO="last_else"'], | |
27 }], | |
28 ], | |
29 }, | |
30 ], | |
31 } | |
OLD | NEW |