| OLD | NEW |
| 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/bindings/modules/v8/generated.gni") | 5 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
| 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
| 7 import("//third_party/WebKit/Source/modules/modules.gni") | 7 import("//third_party/WebKit/Source/modules/modules.gni") |
| 8 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") | 8 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") |
| 9 | 9 |
| 10 visibility = [ "//third_party/WebKit/*" ] | 10 visibility = [ "//third_party/WebKit/*" ] |
| 11 | 11 |
| 12 group("bindings_modules_generated") { | 12 group("bindings_modules_generated") { |
| 13 public_deps = [ | 13 public_deps = [ |
| 14 ":bindings_modules_impl_generated", | 14 ":bindings_modules_impl_generated", |
| 15 ":bindings_modules_v8_generated_init_partial", | 15 ":bindings_modules_v8_generated_init_partial", |
| 16 ":generate_bindings_modules_v8_interfaces", | 16 ":generate_bindings_modules_v8_interfaces", |
| 17 ":generate_bindings_modules_v8_partial_interfaces", | 17 ":generate_bindings_modules_v8_partial_interfaces", |
| 18 ":generate_v8_snapshot_external_references", |
| 18 ] | 19 ] |
| 19 } | 20 } |
| 20 | 21 |
| 21 idl_compiler("generate_bindings_modules_v8_interfaces") { | 22 idl_compiler("generate_bindings_modules_v8_interfaces") { |
| 22 sources = modules_definition_idl_files | 23 sources = modules_definition_idl_files |
| 23 output_dir = bindings_modules_v8_output_dir | 24 output_dir = bindings_modules_v8_output_dir |
| 24 output_name_suffix = "" | 25 output_name_suffix = "" |
| 25 target_component = "modules" | 26 target_component = "modules" |
| 26 } | 27 } |
| 27 | 28 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 "{{response_file_name}}", | 62 "{{response_file_name}}", |
| 62 "--output", | 63 "--output", |
| 63 rebase_path(bindings_modules_generated_init_partial_interfaces_file, | 64 rebase_path(bindings_modules_generated_init_partial_interfaces_file, |
| 64 root_build_dir), | 65 root_build_dir), |
| 65 ] | 66 ] |
| 66 | 67 |
| 67 deps = [ | 68 deps = [ |
| 68 "//third_party/WebKit/Source/bindings/modules:interfaces_info", | 69 "//third_party/WebKit/Source/bindings/modules:interfaces_info", |
| 69 ] | 70 ] |
| 70 } | 71 } |
| 72 |
| 73 action("generate_v8_snapshot_external_references") { |
| 74 script = "$bindings_scripts_dir/generate_v8_snapshot_external_references.py" |
| 75 idl_files = core_idl_files + core_idl_with_modules_dependency_files + |
| 76 modules_definition_idl_files |
| 77 output = bindings_generated_v8_snapshot_external_references_file |
| 78 |
| 79 inputs = idl_files + [ script ] |
| 80 outputs = [ |
| 81 output, |
| 82 ] |
| 83 |
| 84 response_file_contents = rebase_path(idl_files, root_build_dir) |
| 85 args = [ |
| 86 "--cache-dir", |
| 87 rebase_path(bindings_scripts_output_dir, root_build_dir), |
| 88 "--output", |
| 89 rebase_path(output, root_build_dir), |
| 90 "--idl-files-list", |
| 91 "{{response_file_name}}", |
| 92 "--info-dir", |
| 93 rebase_path("$bindings_output_dir", root_build_dir), |
| 94 "--target-component", |
| 95 "modules", |
| 96 ] |
| 97 |
| 98 deps = [ |
| 99 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
| 100 "//third_party/WebKit/Source/bindings/modules:interfaces_info", |
| 101 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_mod
ules", |
| 102 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates", |
| 103 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables", |
| 104 ] |
| 105 } |
| OLD | NEW |