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("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("gin") { | 8 component("gin") { |
9 sources = [ | 9 sources = [ |
10 "arguments.cc", | 10 "arguments.cc", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 defines = [ "GIN_IMPLEMENTATION" ] | 79 defines = [ "GIN_IMPLEMENTATION" ] |
80 | 80 |
81 public_deps = [ | 81 public_deps = [ |
82 "//base", | 82 "//base", |
83 "//v8", | 83 "//v8", |
84 ] | 84 ] |
85 deps = [ | 85 deps = [ |
86 "//base/third_party/dynamic_annotations", | 86 "//base/third_party/dynamic_annotations", |
87 "//crypto", | 87 "//crypto", |
88 ] | 88 ] |
| 89 if (v8_use_external_startup_data && is_win) { |
| 90 public_deps += [ ":gin_v8_snapshot_fingerprint" ] |
| 91 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] |
| 92 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] |
| 93 } |
89 | 94 |
90 if (is_mac) { | 95 if (is_mac) { |
91 libs = [ "CoreFoundation.framework" ] | 96 libs = [ "CoreFoundation.framework" ] |
92 } | 97 } |
93 | 98 |
94 configs += [ "//v8:external_startup_data" ] | 99 configs += [ "//v8:external_startup_data" ] |
95 } | 100 } |
96 | 101 |
| 102 if (v8_use_external_startup_data) { |
| 103 action("gin_v8_snapshot_fingerprint") { |
| 104 script = "//gin/fingerprint/fingerprint_v8_snapshot.py" |
| 105 |
| 106 snapshot_file = "$root_out_dir/snapshot_blob.bin" |
| 107 natives_file = "$root_out_dir/natives_blob.bin" |
| 108 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" |
| 109 |
| 110 args = [ |
| 111 "--snapshot_file", |
| 112 rebase_path(snapshot_file, root_build_dir), |
| 113 "--natives_file", |
| 114 rebase_path(natives_file, root_build_dir), |
| 115 "--output_file", |
| 116 rebase_path(output_file, root_build_dir), |
| 117 ] |
| 118 inputs = [ |
| 119 snapshot_file, |
| 120 natives_file, |
| 121 ] |
| 122 outputs = [ |
| 123 output_file, |
| 124 ] |
| 125 |
| 126 deps = [ |
| 127 "//v8", |
| 128 ] |
| 129 } |
| 130 } |
| 131 |
97 executable("gin_shell") { | 132 executable("gin_shell") { |
98 sources = [ | 133 sources = [ |
99 "shell/gin_main.cc", | 134 "shell/gin_main.cc", |
100 ] | 135 ] |
101 | 136 |
102 deps = [ | 137 deps = [ |
103 ":gin", | 138 ":gin", |
104 "//base", | 139 "//base", |
105 "//base:i18n", | 140 "//base:i18n", |
106 "//build/config/sanitizers:deps", | 141 "//build/config/sanitizers:deps", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 "shell/hello_world.js", | 204 "shell/hello_world.js", |
170 "test/file_unittests.js", | 205 "test/file_unittests.js", |
171 "test/gtest_unittests.js", | 206 "test/gtest_unittests.js", |
172 "../OWNERS", | 207 "../OWNERS", |
173 ] | 208 ] |
174 | 209 |
175 data_deps = [ | 210 data_deps = [ |
176 ":gin_shell", | 211 ":gin_shell", |
177 ] | 212 ] |
178 } | 213 } |
OLD | NEW |