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

Side by Side Diff: test/rules-dirname/src/subdir/input-rule-dirname.gyp

Issue 294183004: Use relative path/dir msbuild variables to map $(InputDir) and $(InputPath) (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Fix for Mac trybot Created 6 years, 7 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
« no previous file with comments | « test/rules-dirname/gyptest-dirname.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 Google Inc. All rights reserved. 1 # Copyright (c) 2011 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'print_rule_input_path', 8 'target_name': 'print_rule_input_dirname',
9 'type': 'none', 9 'type': 'none',
10 'msvs_cygwin_shell': 0, 10 'msvs_cygwin_shell': 0,
11 'sources': [ 11 'sources': [
12 'foo/bar/baz.printvars', 12 'foo/bar/baz.printvars',
13 'a/b/c.printvars', 13 'a/b/c.printvars',
14 ], 14 ],
15 'rules': [ 15 'rules': [
16 { 16 {
17 'rule_name': 'printvars', 17 'rule_name': 'printvars',
18 'extension': 'printvars', 18 'extension': 'printvars',
19 'inputs': [ 19 'inputs': [
20 'printvars.py', 20 'printvars.py',
21 ], 21 ],
22 'outputs': [ 22 'outputs': [
23 '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).printed', 23 '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).dirname',
24 ], 24 ],
25 'action': [ 25 'action': [
26 'python', '<@(_inputs)', '<(RULE_INPUT_DIRNAME)', '<@(_outputs)', 26 'python', '<@(_inputs)', '<(RULE_INPUT_DIRNAME)', '<@(_outputs)',
27 ], 27 ],
28 }, 28 },
29 ], 29 ],
30 }, 30 },
31 { 31 {
32 'target_name': 'print_rule_input_path',
33 'type': 'none',
34 'msvs_cygwin_shell': 0,
35 'sources': [
36 'foo/bar/baz.printvars',
37 'a/b/c.printvars',
38 ],
39 'rules': [
40 {
41 'rule_name': 'printvars',
42 'extension': 'printvars',
43 'inputs': [
44 'printvars.py',
45 ],
46 'outputs': [
47 '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).path',
48 ],
49 'action': [
50 'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)',
51 ],
52 },
53 ],
54 },
55 {
32 'target_name': 'gencc_int_output', 56 'target_name': 'gencc_int_output',
33 'type': 'executable', 57 'type': 'executable',
34 'msvs_cygwin_shell': 0, 58 'msvs_cygwin_shell': 0,
35 'msvs_cygwin_dirs': ['../../../../../../<(DEPTH)/third_party/cygwin'],
36 'sources': [ 59 'sources': [
37 'nodir.gencc', 60 'nodir.gencc',
38 'foo/bar/baz.gencc', 61 'foo/bar/baz.gencc',
39 'a/b/c.gencc', 62 'a/b/c.gencc',
40 » 'main.cc', 63 'main.cc',
41 ],
42 'conditions': [
43 ['OS=="win"', {
44 'dependencies': [
45 'cygwin',
46 ],
47 }],
48 ], 64 ],
49 'rules': [ 65 'rules': [
50 { 66 {
51 'rule_name': 'gencc', 67 'rule_name': 'gencc',
52 'extension': 'gencc', 68 'extension': 'gencc',
53 'msvs_external_rule': 1,
54 'inputs': [ 69 'inputs': [
55 '<(DEPTH)/copy-file.py', 70 '<(DEPTH)/copy-file.py',
56 ], 71 ],
57 'outputs': [ 72 'outputs': [
58 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cc', 73 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cc',
59 ], 74 ],
60 'action': [ 75 'action': [
61 'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', 76 'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)',
62 ], 77 ],
63 'process_outputs_as_sources': 1, 78 'process_outputs_as_sources': 1,
64 }, 79 },
65 ], 80 ],
66 }, 81 },
67 ], 82 ],
68 'conditions': [ 83 'conditions': [
69 ['OS=="win"', { 84 ['OS=="win"', {
70 'targets': [ 85 'targets': [
71 { 86 {
87 'target_name': 'gencc_int_output_external',
88 'type': 'executable',
89 'msvs_cygwin_shell': 0,
90 'msvs_cygwin_dirs': ['../../../../../../<(DEPTH)/third_party/cygwin'],
91 'sources': [
92 'nodir.gencc',
93 'foo/bar/baz.gencc',
94 'a/b/c.gencc',
95 'main.cc',
96 ],
97 'dependencies': [
98 'cygwin',
99 ],
100 'rules': [
101 {
102 'rule_name': 'gencc',
103 'extension': 'gencc',
104 'msvs_external_rule': 1,
105 'inputs': [
106 '<(DEPTH)/copy-file.py',
107 ],
108 'outputs': [
109 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).cc ',
110 ],
111 'action': [
112 'python', '<@(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)',
113 ],
114 'process_outputs_as_sources': 1,
115 },
116 ],
117 },
118 {
72 'target_name': 'cygwin', 119 'target_name': 'cygwin',
73 'type': 'none', 120 'type': 'none',
74 'actions': [ 121 'actions': [
75 { 122 {
76 'action_name': 'setup_mount', 123 'action_name': 'setup_mount',
77 'msvs_cygwin_shell': 0, 124 'msvs_cygwin_shell': 0,
78 'inputs': [ 125 'inputs': [
79 '../../../../../../<(DEPTH)/third_party/cygwin/setup_mount.bat', 126 '../../../../../../<(DEPTH)/third_party/cygwin/setup_mount.bat',
80 ], 127 ],
81 # Visual Studio requires an output file, or else the 128 # Visual Studio requires an output file, or else the
82 # custom build step won't run. 129 # custom build step won't run.
83 'outputs': [ 130 'outputs': [
84 '<(INTERMEDIATE_DIR)/_always_run_setup_mount.marker', 131 '<(INTERMEDIATE_DIR)/_always_run_setup_mount.marker',
85 ], 132 ],
86 'action': ['<@(_inputs)'], 133 'action': ['<@(_inputs)'],
87 }, 134 },
88 ], 135 ],
89 }, 136 },
90 ], 137 ],
91 }], 138 }],
92 ], 139 ],
93 } 140 }
OLDNEW
« no previous file with comments | « test/rules-dirname/gyptest-dirname.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698