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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for some comments Created 3 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
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/core/core_idl_files.gni") 5 import("//third_party/WebKit/Source/core/core_idl_files.gni")
6 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") 6 import("//third_party/WebKit/Source/modules/modules_idl_files.gni")
7 7
8 bindings_scripts_dir = get_path_info(".", "abspath") 8 bindings_scripts_dir = get_path_info(".", "abspath")
9 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts" 9 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts"
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 # http://crbug.com/358074 290 # http://crbug.com/358074
291 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core ", 291 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core ",
292 "//third_party/WebKit/Source/bindings/modules:interfaces_info", 292 "//third_party/WebKit/Source/bindings/modules:interfaces_info",
293 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_m odules", 293 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_m odules",
294 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates", 294 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates",
295 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables", 295 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables",
296 ] 296 ]
297 } 297 }
298 } 298 }
299 299
300 template("idl_reference_table") {
haraken 2017/05/20 19:10:02 v8_snapshot_reference_table
peria 2017/06/01 08:33:32 removed.
301 action(target_name) {
302 script = "//third_party/WebKit/Source/bindings/scripts/generate_reference_ta ble.py"
haraken 2017/05/20 19:10:02 Rename it to generate_v8_snapshot_reference_table.
peria 2017/06/01 08:33:32 Done.
303
304 inputs = invoker.sources + [ script ]
305 outputs = invoker.outputs
306
307 response_file_contents = rebase_path(invoker.sources, root_build_dir)
308 args = [
309 "--cache-dir",
310 rebase_path(bindings_scripts_output_dir, root_build_dir),
311 "--output-dir",
312 rebase_path(invoker.output_dir, root_build_dir),
313 "--idl-files-list",
314 "{{response_file_name}}",
315 "--info-dir",
316 rebase_path("$bindings_output_dir", root_build_dir),
317 "--target-component",
318 invoker.target_component,
319 ]
320
321 deps = [
322 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core ",
323 "//third_party/WebKit/Source/bindings/modules:interfaces_info",
324 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_m odules",
325 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates",
326 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables",
327 ]
328 }
329 }
330
300 # Calls the aggregate_generated_bindings script. 331 # Calls the aggregate_generated_bindings script.
301 # 332 #
302 # Parameters: 333 # Parameters:
303 # sources = a list of source IDL files. 334 # sources = a list of source IDL files.
304 # component = a name of directory for these files (one word, no slashes). 335 # component = a name of directory for these files (one word, no slashes).
305 # outputs = a name of file to write to. 336 # outputs = a name of file to write to.
306 template("aggregate_generated_bindings") { 337 template("aggregate_generated_bindings") {
307 action(target_name) { 338 action(target_name) {
308 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b indings.py" 339 script = "//third_party/WebKit/Source/bindings/scripts/aggregate_generated_b indings.py"
309 340
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 args += [ rebase_path(output_idl_file, root_build_dir) ] 440 args += [ rebase_path(output_idl_file, root_build_dir) ]
410 output_idl_files += [ output_idl_file ] 441 output_idl_files += [ output_idl_file ]
411 output_header_files += 442 output_header_files +=
412 [ "$output_dir/${interface}${component}Constructors.h" ] 443 [ "$output_dir/${interface}${component}Constructors.h" ]
413 } 444 }
414 445
415 outputs = output_idl_files + output_header_files 446 outputs = output_idl_files + output_header_files
416 deps = invoker.deps 447 deps = invoker.deps
417 } 448 }
418 } 449 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698