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

Side by Side Diff: tests/test1/test1.gyp

Issue 159605: This changes variable expansion so that it is recursive (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 11 years, 4 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 # This is a simple test file to make sure that variable substitution
2 # happens correctly. Run "run_tests.py" using python to generate the
3 # output from this gyp file.
4
5 {
6 'variables': {
7 'pi': 'import math; print math.pi',
8 'letters': 'ABCD',
9 },
10 'targets': [
11 {
12 'target_name': 'foo',
13 'type': 'none',
14 'variables': {
15 'var1': '<!(["python", "-c", "<(pi)"])',
16 'var2': '<!(python -c "print \'<!(python -c "<(pi)") <(letters)\'")',
17 'var3': '<!(python -c "print \'<(letters)\'")',
18 'var4': '<(<!(python -c "print \'letters\'"))',
19 },
20 'actions': [
21 {
22 'action_name': 'test_action',
23 'inputs' : [
24 '<(var2)',
25 ],
26 'outputs': [
27 '<(var4)',
28 ],
29 'action': [
30 'echo',
31 '<(_inputs)',
32 '<(_outputs)',
33 ],
34 },
35 ],
36 },
37 ],
38 }
OLDNEW
« pylib/gyp/input.py ('K') | « tests/test1.golden ('k') | tests/test1/test1.gypd.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698