Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Side by Side Diff: test/conditions/elseif/elseif.gyp

Issue 601353002: Add support for "else if" in gyp conditions (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698