| 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_v8_generated") { | 12 group("bindings_modules_v8_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_bindings_modules_v8_partial_interfaces_for_testing", | 18 ":generate_bindings_modules_v8_partial_interfaces_for_testing", |
| 19 ":generate_v8_context_snapshot_external_references", |
| 19 ] | 20 ] |
| 20 } | 21 } |
| 21 | 22 |
| 22 idl_compiler("generate_bindings_modules_v8_interfaces") { | 23 idl_compiler("generate_bindings_modules_v8_interfaces") { |
| 23 sources = modules_definition_idl_files | 24 sources = modules_definition_idl_files |
| 24 output_dir = bindings_modules_v8_output_dir | 25 output_dir = bindings_modules_v8_output_dir |
| 25 output_name_suffix = "" | 26 output_name_suffix = "" |
| 26 target_component = "modules" | 27 target_component = "modules" |
| 27 } | 28 } |
| 28 | 29 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ":bindings_modules_v8_generated", | 102 ":bindings_modules_v8_generated", |
| 102 ] | 103 ] |
| 103 | 104 |
| 104 if (!is_component_build && is_win) { | 105 if (!is_component_build && is_win) { |
| 105 # This target as a static library (for non-component builds) is >4GB on | 106 # This target as a static library (for non-component builds) is >4GB on |
| 106 # Windows, this causes linking to fail. As a workaround, split it into | 107 # Windows, this causes linking to fail. As a workaround, split it into |
| 107 # multiple shards. | 108 # multiple shards. |
| 108 split_count = 5 | 109 split_count = 5 |
| 109 } | 110 } |
| 110 } | 111 } |
| 112 |
| 113 action("generate_v8_context_snapshot_external_references") { |
| 114 script = "$bindings_scripts_dir/generate_v8_context_snapshot_external_referenc
es.py" |
| 115 idl_files = core_idl_files + core_idl_with_modules_dependency_files + |
| 116 modules_definition_idl_files |
| 117 output = bindings_generated_v8_context_snapshot_external_references_file |
| 118 |
| 119 inputs = idl_files + [ script ] |
| 120 outputs = [ |
| 121 output, |
| 122 ] |
| 123 |
| 124 response_file_contents = rebase_path(idl_files, root_build_dir) |
| 125 args = [ |
| 126 "--cache-dir", |
| 127 rebase_path(bindings_scripts_output_dir, root_build_dir), |
| 128 "--output", |
| 129 rebase_path(output, root_build_dir), |
| 130 "--idl-files-list", |
| 131 "{{response_file_name}}", |
| 132 "--info-dir", |
| 133 rebase_path("$bindings_output_dir", root_build_dir), |
| 134 "--target-component", |
| 135 "modules", |
| 136 ] |
| 137 |
| 138 deps = [ |
| 139 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
| 140 "//third_party/WebKit/Source/bindings/modules:interfaces_info", |
| 141 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_mod
ules", |
| 142 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates", |
| 143 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables", |
| 144 ] |
| 145 } |
| OLD | NEW |