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

Side by Side Diff: test/variables/commands/commands.gyp

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 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
OLDNEW
1 # Copyright (c) 2009 Google Inc. All rights reserved. 1 # Copyright (c) 2009 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 # This is a simple test file to make sure that variable substitution 5 # This is a simple test file to make sure that variable substitution
6 # happens correctly. Run "run_tests.py" using python to generate the 6 # happens correctly. Run "run_tests.py" using python to generate the
7 # output from this gyp file. 7 # output from this gyp file.
8 8
9 { 9 {
10 'variables': { 10 'variables': {
11 'pi': 'import math; print math.pi', 11 'pi': 'import math; print(math.pi)',
Nico 2016/07/29 22:22:06 hmm doesn't this need an `from __future__ import p
AWhetter 2016/11/05 23:59:50 Nope. Using brackets is optional in Python 2.7.
12 'third_letters': "<(other_letters)HIJK", 12 'third_letters': "<(other_letters)HIJK",
13 'letters_list': 'ABCD', 13 'letters_list': 'ABCD',
14 'other_letters': '<(letters_list)EFG', 14 'other_letters': '<(letters_list)EFG',
15 'check_included': '<(included_variable)', 15 'check_included': '<(included_variable)',
16 'check_lists': [ 16 'check_lists': [
17 '<(included_variable)', 17 '<(included_variable)',
18 '<(third_letters)', 18 '<(third_letters)',
19 ], 19 ],
20 'check_int': 5, 20 'check_int': 5,
21 'check_str_int': '6', 21 'check_str_int': '6',
(...skipping 12 matching lines...) Expand all
34 }, 34 },
35 'includes': [ 35 'includes': [
36 'commands.gypi', 36 'commands.gypi',
37 ], 37 ],
38 'targets': [ 38 'targets': [
39 { 39 {
40 'target_name': 'foo', 40 'target_name': 'foo',
41 'type': 'none', 41 'type': 'none',
42 'variables': { 42 'variables': {
43 'var1': '<!(["python", "-c", "<(pi)"])', 43 'var1': '<!(["python", "-c", "<(pi)"])',
44 'var2': '<!(python -c "print \'<!(python -c "<(pi)") <(letters_list)\'") ', 44 'var2': '<!(python -c "print(\'<!(python -c "<(pi)") <(letters_list)\')" )',
45 'var3': '<!(python -c "print \'<(letters_list)\'")', 45 'var3': '<!(python -c "print(\'<(letters_list)\')")',
46 'var4': '<(<!(python -c "print \'letters_list\'"))', 46 'var4': '<(<!(python -c "print(\'letters_list\')"))',
47 'var5': 'letters_', 47 'var5': 'letters_',
48 'var6': 'list', 48 'var6': 'list',
49 'var7': '<(check_int)', 49 'var7': '<(check_int)',
50 'var8': '<(check_int)blah', 50 'var8': '<(check_int)blah',
51 'var9': '<(check_str_int)', 51 'var9': '<(check_str_int)',
52 'var10': '<(check_list_int)', 52 'var10': '<(check_list_int)',
53 'var11': ['<@(check_list_int)'], 53 'var11': ['<@(check_list_int)'],
54 'var12': '<(not_int_1)', 54 'var12': '<(not_int_1)',
55 'var13': '<(not_int_2)', 55 'var13': '<(not_int_2)',
56 'var14': '<(not_int_3)', 56 'var14': '<(not_int_3)',
(...skipping 25 matching lines...) Expand all
82 'action': [ 82 'action': [
83 'echo', 83 'echo',
84 '<(_inputs)', 84 '<(_inputs)',
85 '<(_outputs)', 85 '<(_outputs)',
86 ], 86 ],
87 }, 87 },
88 ], 88 ],
89 }, 89 },
90 ], 90 ],
91 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698