Chromium Code Reviews| Index: gin/BUILD.gn |
| diff --git a/gin/BUILD.gn b/gin/BUILD.gn |
| index b352c3ac4f34148605151c8729bebed1523f5432..f0ffa83dcc3b6a9d97f7723c9ddcc5bc20dba96f 100644 |
| --- a/gin/BUILD.gn |
| +++ b/gin/BUILD.gn |
| @@ -2,6 +2,8 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +import("//build/module_args/v8.gni") |
| + |
| component("gin") { |
| sources = [ |
| "arguments.cc", |
| @@ -68,6 +70,37 @@ component("gin") { |
| deps = [ |
| "//base/third_party/dynamic_annotations", |
| ] |
| + if (v8_use_external_startup_data) { |
|
jochen (gone - plz use gerrit)
2015/01/08 15:11:53
shouldn't that be v8_use_external_startup_data &&
rmcilroy
2015/01/08 16:29:21
Done.
|
| + deps += [ |
| + ":gin_v8_snapshot_fingerprint", |
| + "//crypto:crypto", |
| + ] |
| + sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] |
| + } |
| +} |
| + |
| +action("gin_v8_snapshot_fingerprint") { |
| + script = "//gin/fingerprint/fingerprint_v8_snapshot.py" |
| + |
| + snapshot_file = "$root_build_dir/snapshot_blob.bin" |
| + natives_file = "$root_build_dir/natives_blob.bin" |
| + output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc" |
| + |
| + args = [ |
| + "--snapshot_file", |
| + rebase_path(snapshot_file, root_build_dir), |
| + "--natives_file", |
| + rebase_path(natives_file, root_build_dir), |
| + "--output_file", |
| + rebase_path(output_file, root_build_dir), |
| + ] |
| + inputs = [ |
| + snapshot_file, |
| + natives_file, |
| + ] |
| + outputs = [ |
| + output_file, |
| + ] |
| } |
| executable("gin_shell") { |