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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/BUILD.gn

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for all comments Created 3 years, 6 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/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_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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ":bindings_modules_v8_generated", 89 ":bindings_modules_v8_generated",
89 ] 90 ]
90 91
91 if (!is_component_build && is_win) { 92 if (!is_component_build && is_win) {
92 # This target as a static library (for non-component builds) is >4GB on 93 # This target as a static library (for non-component builds) is >4GB on
93 # Windows, this causes linking to fail. As a workaround, split it into 94 # Windows, this causes linking to fail. As a workaround, split it into
94 # multiple shards. 95 # multiple shards.
95 split_count = 5 96 split_count = 5
96 } 97 }
97 } 98 }
99
100 action("generate_v8_snapshot_external_references") {
101 script = "$bindings_scripts_dir/generate_v8_snapshot_external_references.py"
102 idl_files = core_idl_files + core_idl_with_modules_dependency_files +
103 modules_definition_idl_files
104 output = bindings_generated_v8_snapshot_external_references_file
105
106 inputs = idl_files + [ script ]
107 outputs = [
108 output,
109 ]
110
111 response_file_contents = rebase_path(idl_files, root_build_dir)
112 args = [
113 "--cache-dir",
114 rebase_path(bindings_scripts_output_dir, root_build_dir),
115 "--output",
116 rebase_path(output, root_build_dir),
117 "--idl-files-list",
118 "{{response_file_name}}",
119 "--info-dir",
120 rebase_path("$bindings_output_dir", root_build_dir),
121 "--target-component",
122 "modules",
123 ]
124
125 deps = [
126 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core",
127 "//third_party/WebKit/Source/bindings/modules:interfaces_info",
128 "//third_party/WebKit/Source/bindings/modules:interfaces_info_individual_mod ules",
129 "//third_party/WebKit/Source/bindings/scripts:cached_jinja_templates",
130 "//third_party/WebKit/Source/bindings/scripts:cached_lex_yacc_tables",
131 ]
132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698