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

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

Issue 2669243009: Added CSSPropertyAPIMethods.json5 which defines all API methods. (Closed)
Patch Set: changed to inherit from make_style_builder Created 3 years, 10 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("//build/toolchain/toolchain.gni") 5 import("//build/toolchain/toolchain.gni")
6 import("//third_party/WebKit/Source/config.gni") 6 import("//third_party/WebKit/Source/config.gni")
7 7
8 # All paths in this file should be absolute so targets in any directory can use 8 # All paths in this file should be absolute so targets in any directory can use
9 # them without worrying about the current directory. 9 # them without worrying about the current directory.
10 _scripts_dir = "//third_party/WebKit/Source/build/scripts" 10 _scripts_dir = "//third_party/WebKit/Source/build/scripts"
11 11
12 scripts_for_in_files = [ 12 scripts_for_in_files = [
13 # jinja2/__init__.py contains version string, so sufficient as 13 # jinja2/__init__.py contains version string, so sufficient as
14 # dependency for whole jinja2 package 14 # dependency for whole jinja2 package
15 "//third_party/jinja2/__init__.py", 15 "//third_party/jinja2/__init__.py",
16 "//third_party/markupsafe/__init__.py", # jinja2 dep 16 "//third_party/markupsafe/__init__.py", # jinja2 dep
17 "$_scripts_dir/hasher.py", 17 "$_scripts_dir/hasher.py",
18 "$_scripts_dir/in_file.py", 18 "$_scripts_dir/in_file.py",
19 "$_scripts_dir/in_generator.py", 19 "$_scripts_dir/in_generator.py",
20 "$_scripts_dir/license.py", 20 "$_scripts_dir/license.py",
21 "$_scripts_dir/name_utilities.py", 21 "$_scripts_dir/name_utilities.py",
22 "$_scripts_dir/template_expander.py", 22 "$_scripts_dir/template_expander.py",
23 "$_scripts_dir/templates/macros.tmpl", 23 "$_scripts_dir/templates/macros.tmpl",
24 ] 24 ]
25 25
26 css_properties_files = 26 css_properties_files =
27 scripts_for_in_files + [ "$_scripts_dir/css_properties.py" ] 27 scripts_for_in_files + [ "$_scripts_dir/css_properties.py" ]
28 28
29 make_css_property_api_files = [
sashab 2017/02/10 05:47:17 Not needed :)
30 "$_scripts_dir/templates/CSSPropertyAPIFiles.h.tmpl",
31 "$_scripts_dir/templates/CSSPropertyDescriptor.cpp.tmpl",
32 ]
33
29 make_event_factory_files = scripts_for_in_files + [ 34 make_event_factory_files = scripts_for_in_files + [
30 "$_scripts_dir/make_event_factory.py", 35 "$_scripts_dir/make_event_factory.py",
31 "$_scripts_dir/templates/EventFactory.cpp.tmpl", 36 "$_scripts_dir/templates/EventFactory.cpp.tmpl",
32 ] 37 ]
33 38
34 make_names_files = scripts_for_in_files + [ 39 make_names_files = scripts_for_in_files + [
35 "$_scripts_dir/make_names.py", 40 "$_scripts_dir/make_names.py",
36 "$_scripts_dir/templates/MakeNames.cpp.tmpl", 41 "$_scripts_dir/templates/MakeNames.cpp.tmpl",
37 "$_scripts_dir/templates/MakeNames.h.tmpl", 42 "$_scripts_dir/templates/MakeNames.h.tmpl",
38 ] 43 ]
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 135 }
131 } 136 }
132 137
133 # Template for scripts using css_properties.py. This is a special case of 138 # Template for scripts using css_properties.py. This is a special case of
134 # process_in_files. 139 # process_in_files.
135 # outputs: expected results 140 # outputs: expected results
136 template("css_properties") { 141 template("css_properties") {
137 process_in_files(target_name) { 142 process_in_files(target_name) {
138 script = invoker.script 143 script = invoker.script
139 in_files = [ "css/CSSProperties.json5" ] 144 in_files = [ "css/CSSProperties.json5" ]
145 if (defined(invoker.in_files)) {
sashab 2017/02/10 05:47:17 Might not need this if we do += below :)
146 in_files += invoker.in_files
147 }
140 other_inputs = css_properties_files 148 other_inputs = css_properties_files
141 if (defined(invoker.other_inputs)) { 149 if (defined(invoker.other_inputs)) {
142 other_inputs += invoker.other_inputs 150 other_inputs += invoker.other_inputs
143 } 151 }
144 other_args = [ 152 other_args = [
145 "--gperf", 153 "--gperf",
146 gperf_exe, 154 gperf_exe,
147 ] 155 ]
148 outputs = invoker.outputs 156 outputs = invoker.outputs
149 } 157 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 other_inputs = make_event_factory_files 203 other_inputs = make_event_factory_files
196 forward_variables_from(invoker, 204 forward_variables_from(invoker,
197 [ 205 [
198 "deps", 206 "deps",
199 "in_files", 207 "in_files",
200 "outputs", 208 "outputs",
201 "visibility", 209 "visibility",
202 ]) 210 ])
203 } 211 }
204 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698