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

Side by Side Diff: Source/build/scripts/scripts.gni

Issue 473043002: gn win: Pass gperf path in css_properties generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. 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 import("//third_party/WebKit/Source/config.gni") 5 import("//third_party/WebKit/Source/config.gni")
6 6
7 # All paths in this file should be absolute so targets in any directory can use 7 # All paths in this file should be absolute so targets in any directory can use
8 # them without worrying about the current directory. 8 # them without worrying about the current directory.
9 _scripts_dir = "//third_party/WebKit/Source/build/scripts" 9 _scripts_dir = "//third_party/WebKit/Source/build/scripts"
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 # Template to run most of scripts that process "*.in" files. 84 # Template to run most of scripts that process "*.in" files.
85 # script: script to run. 85 # script: script to run.
86 # in_files: ".in" files to pass to the script 86 # in_files: ".in" files to pass to the script
87 # other_inputs: (optional) other input files the script depends on 87 # other_inputs: (optional) other input files the script depends on
88 # defaults to "scripts_for_in_files" (if specified, we assume 88 # defaults to "scripts_for_in_files" (if specified, we assume
89 # that the contents of "scripts_for_in_files" are included in 89 # that the contents of "scripts_for_in_files" are included in
90 # this list specified since this is how these lists are filled 90 # this list specified since this is how these lists are filled
91 # from the GYP build. 91 # from the GYP build.
92 # outputs: expected results. Note that the directory of the 0th item in this 92 # outputs: expected results. Note that the directory of the 0th item in this
93 # list will be taken to be the output path. 93 # list will be taken to be the output path.
94 # other_args: (optional) other arguements to pass to the script. 94 # other_args: (optional) other arguments to pass to the script.
95 template("process_in_files") { 95 template("process_in_files") {
96 action(target_name) { 96 action(target_name) {
97 script = invoker.script 97 script = invoker.script
98 98
99 inputs = invoker.in_files 99 inputs = invoker.in_files
100 if (defined(invoker.other_inputs)) { 100 if (defined(invoker.other_inputs)) {
101 inputs += invoker.other_inputs 101 inputs += invoker.other_inputs
102 } else { 102 } else {
103 inputs += scripts_for_in_files 103 inputs += scripts_for_in_files
104 } 104 }
(...skipping 17 matching lines...) Expand all
122 # process_in_files. 122 # process_in_files.
123 # outputs: expected results 123 # outputs: expected results
124 template("css_properties") { 124 template("css_properties") {
125 process_in_files(target_name) { 125 process_in_files(target_name) {
126 script = invoker.script 126 script = invoker.script
127 in_files = ["css/CSSProperties.in"] 127 in_files = ["css/CSSProperties.in"]
128 other_inputs = css_properties_files 128 other_inputs = css_properties_files
129 if (defined(invoker.other_inputs)) { 129 if (defined(invoker.other_inputs)) {
130 other_inputs += invoker.other_inputs 130 other_inputs += invoker.other_inputs
131 } 131 }
132 other_args = [
133 "--gperf", gperf_exe,
134 ]
132 outputs = invoker.outputs 135 outputs = invoker.outputs
133 } 136 }
134 } 137 }
135 138
136 # Template to run the make_names script. This is a special case of 139 # Template to run the make_names script. This is a special case of
137 # process_in_files. 140 # process_in_files.
138 # in_files: files to pass to the script 141 # in_files: files to pass to the script
139 # outputs: expected results 142 # outputs: expected results
140 template("make_names") { 143 template("make_names") {
141 process_in_files(target_name) { 144 process_in_files(target_name) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 187
185 args = [ 188 args = [
186 rebase_path(invoker.input_file, root_build_dir), 189 rebase_path(invoker.input_file, root_build_dir),
187 rebase_path(invoker.output_file, root_build_dir), 190 rebase_path(invoker.output_file, root_build_dir),
188 ] 191 ]
189 192
190 deps = make_core_generated_deps 193 deps = make_core_generated_deps
191 } 194 }
192 } 195 }
193 196
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698