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

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

Issue 371443003: Merge .in files for css/svg properties into a single file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cascade
Patch Set: Created 6 years, 5 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 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if (defined(invoker.other_args)) { 109 if (defined(invoker.other_args)) {
110 args += invoker.other_args 110 args += invoker.other_args
111 } 111 }
112 112
113 deps = make_core_generated_deps 113 deps = make_core_generated_deps
114 } 114 }
115 } 115 }
116 116
117 # Template to run the make_names script. This is a special case of 117 # Template to run the make_names script. This is a special case of
118 # process_in_files. 118 # process_in_files.
119 # outputs: expected results
120 template("css_properties") {
121 process_in_files(target_name) {
122 script = "//third_party/WebKit/Source/build/scripts/make_names.py"
123 in_files = invoker.in_files
124 other_inputs = invoker.other_inputs
125 outputs = invoker.outputs
126 }
127 }
128
129 # Template to run the make_names script. This is a special case of
130 # process_in_files.
119 # in_files: files to pass to the script 131 # in_files: files to pass to the script
120 # outputs: expected results 132 # outputs: expected results
121 template("make_names") { 133 template("make_names") {
122 process_in_files(target_name) { 134 process_in_files(target_name) {
123 script = "//third_party/WebKit/Source/build/scripts/make_names.py" 135 script = invoker.script
124 in_files = invoker.in_files 136 in_files = ["CSSProperties.in"]
125 other_inputs = make_names_files 137 other_inputs = make_names_files
126 outputs = invoker.outputs 138 outputs = invoker.outputs
127 other_args = [ "--defines", feature_defines_string ] 139 other_args = [ "--defines", feature_defines_string ]
128 } 140 }
129 } 141 }
130 142
131 # Template to run the make_qualified_names script. This is a special case of 143 # Template to run the make_qualified_names script. This is a special case of
132 # process_in_files. 144 # process_in_files.
133 # in_files: list of ".in" files to process. 145 # in_files: list of ".in" files to process.
134 # outputs: list of output files 146 # outputs: list of output files
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 179
168 args = [ 180 args = [
169 rebase_path(invoker.input_file, root_build_dir), 181 rebase_path(invoker.input_file, root_build_dir),
170 rebase_path(invoker.output_file, root_build_dir), 182 rebase_path(invoker.output_file, root_build_dir),
171 ] 183 ]
172 184
173 deps = make_core_generated_deps 185 deps = make_core_generated_deps
174 } 186 }
175 } 187 }
176 188
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698