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

Unified Diff: test/conditions/elseif/elseif_bad2.gyp

Issue 601353002: Add support for "else if" in gyp conditions (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Better tests Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/conditions/elseif/elseif_bad1.gyp ('k') | test/conditions/elseif/elseif_bad3.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/conditions/elseif/elseif_bad2.gyp
diff --git a/test/conditions/elseif/elseif_bad2.gyp b/test/conditions/elseif/elseif_bad2.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..b529f292c06f980a46061c73dbe38a09145b4ef6
--- /dev/null
+++ b/test/conditions/elseif/elseif_bad2.gyp
@@ -0,0 +1,22 @@
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Trigger an error because of two consecutive string conditions, even if the
+# conditions are not actually evaluated.
+
+{
+ 'targets': [
+ {
+ 'variables': { 'test_var': 0 },
+ 'target_name': 'program',
+ 'type': 'executable',
+ 'sources': [ 'program.cc' ],
+ 'conditions': [
+ ['test_var==0', {
+ }, 'test_var==1', 'test_var==2', {
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « test/conditions/elseif/elseif_bad1.gyp ('k') | test/conditions/elseif/elseif_bad3.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698