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

Side by Side Diff: gin/BUILD.gn

Issue 832393003: [gin] Fingerprint the V8 snapshot files on Windows and verify before loading the snapshot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 5 years, 11 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
« no previous file with comments | « content/app/content_main_runner.cc ('k') | gin/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//build/module_args/v8.gni")
6
5 component("gin") { 7 component("gin") {
6 sources = [ 8 sources = [
7 "arguments.cc", 9 "arguments.cc",
8 "arguments.h", 10 "arguments.h",
9 "array_buffer.cc", 11 "array_buffer.cc",
10 "array_buffer.h", 12 "array_buffer.h",
11 "context_holder.cc", 13 "context_holder.cc",
12 "converter.cc", 14 "converter.cc",
13 "converter.h", 15 "converter.h",
14 "debug_impl.cc", 16 "debug_impl.cc",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 63
62 defines = [ "GIN_IMPLEMENTATION" ] 64 defines = [ "GIN_IMPLEMENTATION" ]
63 65
64 public_deps = [ 66 public_deps = [
65 "//base", 67 "//base",
66 "//v8", 68 "//v8",
67 ] 69 ]
68 deps = [ 70 deps = [
69 "//base/third_party/dynamic_annotations", 71 "//base/third_party/dynamic_annotations",
70 ] 72 ]
73 if (v8_use_external_startup_data && is_win) {
74 deps += [
75 ":gin_v8_snapshot_fingerprint",
76 "//crypto:crypto",
77 ]
78 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ]
79 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ]
80 }
81 }
82
83 if (v8_use_external_startup_data) {
84 action("gin_v8_snapshot_fingerprint") {
85 script = "//gin/fingerprint/fingerprint_v8_snapshot.py"
86
87 snapshot_file = "$root_build_dir/snapshot_blob.bin"
88 natives_file = "$root_build_dir/natives_blob.bin"
89 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc"
90
91 args = [
92 "--snapshot_file",
93 rebase_path(snapshot_file, root_build_dir),
94 "--natives_file",
95 rebase_path(natives_file, root_build_dir),
96 "--output_file",
97 rebase_path(output_file, root_build_dir),
98 ]
99 inputs = [
100 snapshot_file,
101 natives_file,
102 ]
103 outputs = [
104 output_file,
105 ]
106 }
71 } 107 }
72 108
73 executable("gin_shell") { 109 executable("gin_shell") {
74 sources = [ 110 sources = [
75 "shell/gin_main.cc", 111 "shell/gin_main.cc",
76 ] 112 ]
77 113
78 deps = [ 114 deps = [
79 ":gin", 115 ":gin",
80 "//base", 116 "//base",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 "test/run_js_tests.cc", 156 "test/run_js_tests.cc",
121 "wrappable_unittest.cc", 157 "wrappable_unittest.cc",
122 ] 158 ]
123 159
124 deps = [ 160 deps = [
125 ":gin_test", 161 ":gin_test",
126 "//base/test:test_support", 162 "//base/test:test_support",
127 "//v8", 163 "//v8",
128 ] 164 ]
129 } 165 }
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | gin/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698